[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
unforseen sideeffect
- To: <eric>
- Subject: unforseen sideeffect
- From: Roger Gregory <roger>
- Date: Sun, 25 Mar 90 16:02:58 PST
- Cc: <xtech>
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.