[Newbies] constants

Randal L. Schwartz merlyn at stonehenge.com
Mon Sep 29 14:49:59 UTC 2008


>>>>> "Norbert" == Norbert Hartl <norbert at hartl.name> writes:

Norbert> It is not called _after_ creation. You said it is just another
Norbert> object. And therefor it is part of the new call. The difference
Norbert> here is that when you create a class there is no initialize 
Norbert> method. You define that later. So it is e.g. executed when load
Norbert> from Monticello or anything that creates the class at a whole
Norbert> including the initialize method. 

Norbert> I hope that comes near to what happens really :)

This dates back to the old .st fileins... the very last line of these fileins
is "SomeClass initialize", meaning that the initialize method is actually
called very explicitly once the class is loaded.

Modern code management systems simulate this in various ways.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


More information about the Beginners mailing list