'#'(X,Y)=Z
Leif Kornstaedt
kornstae at ps.uni-sb.de
Wed Jan 16 13:40:44 CET 2002
luque at info.ucl.ac.be (Luis Quesada) writes:
> %************************* expansion error **********************
> %**
> %** message of nested object application must contain exactly one nesting marker
> %**
> %** in file "/usr/staff/luque/Oz/demo_planning/FD/tmp.oz", line 4, column 11
> %** ------------------ rejected (1 error)
>
> My question is: can X,Y play the role of an expression? If not, why not
> simply say that there is a statement in place of an expression?
X,Y could be an expression *if* Y was a record containing a single
dollar (which is called a nesting marker). That's what the error
message tells you. Of course, the error message is "unfriendly"
to the beginning user in that it assumes that you know (1) what
an object application and a message are and (2) what a nesting
marker is. You know, don't you? ;-)
Personally, I would consider a message `statement at expression
position' less helpful here.
Leif.
-
Please send submissions to hackers at mozart-oz.org
and administriva mail to hackers-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-hackers
mailing list