luque@info.ucl.ac.be (Luis Quesada) writes:
> declare
> class A
> meth foo(X Y Z)
> '#'(X,Y)=Z
> end
> end
hmm the error message is actually caused by the comma.
X,Y invokes method Y of class X on self. In order for this statement
to appear as an expression (as argument of '#'(...)), it must be
transformed into an expression. This is normally done by supplying
a nesting marker in the method record. That's what the error message
is trying to tell you. You don't have a nesting marker, but you need
one.
Cheers,
-- Dr. Denys Duchier Denys.Duchier@ps.uni-sb.de Forschungsbereich Programmiersysteme (Programming Systems Lab) Universitaet des Saarlandes, Geb. 45 http://www.ps.uni-sb.de/~duchier Postfach 15 11 50 Phone: +49 681 302 5618 66041 Saarbruecken, Germany Fax: +49 681 302 5615 - 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/.