[squeak-dev] Q: Value of just the period,
in method body resp. block body
James Foster
Smalltalk at JGFoster.net
Thu Nov 27 13:10:08 UTC 2008
On Nov 27, 2008, at 4:55 AM, Klaus D. Witzel wrote:
> Quick, what does this method return:
>
> MyClass>>myMethod.
In Squeak, this returns the receiver, an instance of MyClass.
>
>
> and what does this method's block return:
>
> MyClass>>myBlock
>
> ^[.]value
In Squeak, this returns nil.
>
>
> I'm writing compiler tests for CorruptVM/Moebius (tests that can
> then also be used with Squeak's compiler and NewCompiler) and want
> to include these two cases as well.
>
> TIA.
>
> /Klaus
>
> --
> "If at first, the idea is not absurd, then there is no hope for it".
> Albert Einstein
>
>
>
More information about the Squeak-dev
mailing list
|