[Seaside] Importing halo's from Monticello

Bert Freudenberg bert at impara.de
Sat Jun 4 02:03:43 CEST 2005

Am 04.06.2005 um 01:44 schrieb John Pierce:

> Pretty freaky!  I never cease to be amazed by this super cool  
> programming environment. You are right! What a handy dandy trick. I  
> wonder if that is an implementation feature of Squeak or if all  
> Smalltalks exhibit that behavior. Anyways, I updated  
> InstanceEncoder on SqueakMap with your caching optimization. Thanks  
> for providing explanation of the technique.

Well, if we ever get around to making literal arrays unmodifiable (*)  
this won't work. It can lead to nasty, hard to debug bugs if the code  
you see does not match the code that is executed.

A cleaner way to store arbitrary objects in code would be adding  
computed literals, that is, some expression marked for the compiler  
to be stored as literal. I think other Smalltalks have those compile- 
time arrays. We could use #{...} notation. Should be a rather simple  
compiler hack ;-)

- Bert -

(*) http://lists.squeakfoundation.org/pipermail/squeak-dev/1998-June/ 

More information about the Seaside mailing list