preamble in ChangeSet and ChangeRecord

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

preamble in ChangeSet and ChangeRecord

Max Leske
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
Reply | Threaded
Open this post in threaded view
|

Re: preamble in ChangeSet and ChangeRecord

Igor Stasenko
On 19 December 2010 15:18, Max Leske <[hidden email]> 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.

Reply | Threaded
Open this post in threaded view
|

Re: preamble in ChangeSet and ChangeRecord

Max Leske
Ah! Makes sense. Thanks Igor.


On 19.12.2010, at 15:25, Igor Stasenko wrote:

> On 19 December 2010 15:18, Max Leske <[hidden email]> 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.
>