[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

unforseen sideeffect



This is a rare case of a good unforseen sideeffect.  The current
optomization of return &*foo  
translates into a compile error when smalltalk code is
^nil
this is because the translator special cases NULL.

This is good, once you understand what the problem is, because it forces 
us to convert all ^nil to ^NULL
unfornately it can't actually work with real code because
any pointer that can actually be NULL i.e. == 0 will fail at runtime
on &*,  nicht war?   Too bad.