Oz and Mozart Hackers Mailing List

Re: PROPOSAL (UCL)


From: Christian Schulte (schulte@imit.kth.se)
Date: Tue Jun 11 2002 - 11:58:25 CEST


Very agreable. Denys?

Christian

"Kevin Glynn" <glynn@info.ucl.ac.be> wrote in message
news:<15621.42046.122596.956770@s-ensor.info.ucl.ac.be>...
>
> Christian Schulte writes:
> > > It violates *your* expectation! (For you M.F := V only reduces
> > > successfully if M is a dictionary.)
> >
> > Mine, too, by the way.
> >
> > Christian
> >
>
> I am still not too bothered by this, but here goes:
>
> Summary:
>
> M.I := V
>
>
> Our proposal
>
> M is a dict => dict updated so that M.I == V
> M is a record, feat I is a cell => cell updated so @(M.I) == V
> otherwise => error.
>
> Denys' proposal
>
> M is a dict => dict updated so that M.I == V
> otherwise => error.
>
>
> if this is a showstopper, then we can modify our proposal to make
>
> <A>.<B> := <C>
>
> a multifix operator. '. :=' takes a dictionary as first argument,
> otherwise it is an error, thus we have Denys' behaviour.
>
> If M is a record, and M.I is a cell then we can update the cell by
> first retrieving it from the record, i.e.
>
> (M.I) := V
>
> or
>
> local C = M.I in
> C := V
> end
>
>
>
> I have already done the work to the parser to allow it to recognise .
> := as a multifix operator.
>
>
> cheers
> k
> -
> Please send submissions to hackers@mozart-oz.org
> and administriva mail to hackers-request@mozart-oz.org.
> The Mozart Oz web site is at http://www.mozart-oz.org/.

-
Please send submissions to hackers@mozart-oz.org
and administriva mail to hackers-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.



This archive was generated by hypermail 2b29.