[Pharo-project] preamble in ChangeSet and ChangeRecord
Hi folks What exactly is the purpose of the preamble in ChangeSet and ChangeRecord? I believe they are not the same for both objects but I haven't been able to figure out what the content of a preamble might actually be. My guess would be that it contains either a comment or a doIt that can check prerequisites. Maybe you could give me an example of how the respective preambles would be used. Thanks, Max
On 19 December 2010 15:18, Max Leske <maxleske@gmail.com> wrote:
Hi folks
What exactly is the purpose of the preamble in ChangeSet and ChangeRecord? I believe they are not the same for both objects but I haven't been able to figure out what the content of a preamble might actually be. My guess would be that it contains either a comment or a doIt that can check prerequisites.
you can put any valid smalltalk code into preamble. Usually i adding it to make sure that when .cs loads, the first things it does - evaluating some stuff in preamble.. like Object become:nil :)
Maybe you could give me an example of how the respective preambles would be used.
Thanks, Max
-- Best regards, Igor Stasenko AKA sig.
Ah! Makes sense. Thanks Igor. On 19.12.2010, at 15:25, Igor Stasenko wrote:
On 19 December 2010 15:18, Max Leske <maxleske@gmail.com> wrote:
Hi folks
What exactly is the purpose of the preamble in ChangeSet and ChangeRecord? I believe they are not the same for both objects but I haven't been able to figure out what the content of a preamble might actually be. My guess would be that it contains either a comment or a doIt that can check prerequisites.
you can put any valid smalltalk code into preamble. Usually i adding it to make sure that when .cs loads, the first things it does - evaluating some stuff in preamble.. like Object become:nil :)
Maybe you could give me an example of how the respective preambles would be used.
Thanks, Max
-- Best regards, Igor Stasenko AKA sig.
participants (2)
-
Igor Stasenko -
Max Leske