OZ & emacs newbie on OS X Qs
Torsten Anders
t.anders at qub.ac.uk
Sat Apr 3 12:38:16 CEST 2004
Quoted from http://www.info.ucl.ac.be/people/PVR/book.html:
"Warning
The book is designed to be accompanied by Mozart version 1.3.0, the next
official Mozart release, which is being coordinated by Konstantin Popov
and Kevin Glynn and will be announced in March 2004. (It will be a few
days late; we expect it in early April.) Version 1.3.0 has two main
differences with the current version 1.2.5. First, a new syntax for
state updating: version 1.3.0 uses the operators @C (access content of
C) and C:=X (assign X to C) for all operations on stateful data (cells
and object attributes). Second, an improved semantics for lazy
evaluation in a concurrent setting."
Current syntax is:
C = {NewCell 0}
{Cell.assign C {Cell.access C} + 1}
{Browse {Cell.access C}}
Best,
Torsten
On Sat, 2004-04-03 at 04:28, ccos wrote:
> thanks to everyone for the deluge of advice, great list this is!
>
> i'm just working through haridi & roy and one of the examples is
> balking:
>
> declare
> C = { NewCell 0 }
> C := @C + 1
> { Browse C }
>
> gives me:
>
> %************************** syntax error ************************
> %**
> %** expected dot expression to the left of :=
> %**
> %** in file "Oz", line 4, column 2
>
> %************************* expansion error **********************
> %**
> %** attribute access used outside of method
> %**
> %** in file "Oz", line 4, column 5
> %** ------------------ rejected (2 errors)
>
> does this have something to do with a version incompatibility or is
> there some other problem?
>
> thought i might also mention some odd behaviour i was having but which
> has since disappeared,
> no idea why. after i installed tk, when i'd open up xemacs with the oz
> command a window would
> open up in xemacs saying 'fontifying oz', and it would sit there like
> that forever, the cursor blinking wildly,
> code would not execute and there was no *Oz Compiler* buffer available.
> if i started a new process
> calling oz again, i'd get a new xemacs/oz process which worked fine. i
> had to have the weirdo
> process running for that to work though. anyways, after a reboot this
> morning the 'fontifying oz' window
> was there for only a split second and now everything works fine. sorry
> i can't be of more help but i wouldn't
> even know where to begin digging in emacs to find out what went wrong
> at this stage.
>
> thanks again,
> _c
>
> _______________________________________________
> mozart-users mailing list
> mozart-users at ps.uni-sb.de
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders <t.anders at qub.ac.uk>
More information about the mozart-users
mailing list