[squeak-dev] Two new questions about VM machinery :-)

Tobias Pape Das.Linux at gmx.de
Sat Sep 5 11:25:26 UTC 2020


> On 05.09.2020, at 13:10, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
> 
> What would you expect the following to return?
> x := Compiler evaluate: 'super identityHash' for: ProtoObject new.
> thisContext objectClass: x.
> I would have guessed that either the VM crashes or ProtoObject >> #cannotInterpret: is called.
> But actually, it answers you the ProtoObject instance, which I find very interesting because it means that if a message cannot be looked up, it is simply and silently skipped.

No. you're just missing the return, that's why it answers self…
-t


More information about the Squeak-dev mailing list