Method are not objects?

Marko Mikulicic marko at seul.org
Thu Oct 12 18:24:56 UTC 2000


Hello,

In the last few days I played with Self4 on a sparc machine and found
some strange
things:

VM# ( | a | 'ciao' )

'ciao' <3>: ( | parent* = <4>. | byte array: {99, 105, 97, 111} )  

it seems that the parser does not parse this construct as an "object
with code", but
instead it evaluates it, forgetting the "| a |" .
This behaviour is not consistent with ( | m = ( | a | 'ciao' ) | ) where
it is parsed
as a method (object with code).

I know that mirrors are used to handle methods but this why not allow
creating method literals ?


Marko



More information about the Self-interest mailing list