Dear Miguel,
the OPI has a menu Core Syntax, which does this translation for you.
Here is an example. The following class definition
declare
class Test
attr x
meth init(x:X<=_)
x := X
end
meth getX($)
@x
end
end
is translated into the following core syntax
declare Test in
class Test
attr x
meth init(x: X <= _)
local UnnestApply1 in
UnnestApply1 = x
{`catAssignOO` UnnestApply1 X}
end
end
meth getX(1: Result1)
local UnnestApply2 in
UnnestApply2 = x
{`catAccessOO` UnnestApply2 Result1}
end
end
end
Best wishes,
Torsten
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
On 07.06.2010, at 19:45, Miguel Ferrando Rocher wrote:
Hi,
How can I translate the definition of simple class into the Kernel
language?
Thank you
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users