[squeak-dev] preamble

karl ramberg karlramberg at gmail.com
Mon Oct 14 20:01:06 UTC 2019


So the comment on top of the preamble and post script could be something
like code below. Could we make this comment show even in a previous made
preamble/ post script so it is there as a reminder ?

'From Squeak5.3alpha of 14 October 2019 [latest update: #19114] on 14
October 2019 at 9:53:39 pm'!

!PackageInfo methodsFor: 'preamble/postscript' stamp: 'kfr 10/14/2019
21:52'!
postscriptDefault
^  '"Below, add code to be run after the loading of this package.
Postscript is only evaluated when it is different than previous version.
That is why it is always best practice to remove its previous contents when
editing it."'
! !

!PackageInfo methodsFor: 'preamble/postscript' stamp: 'kfr 10/14/2019
21:49'!
preambleDefault
^ '"Below, add code to be run before the loading of this package. Preamble
is only evaluated when it is
different than previous version. That is why it is always best practice to
remove its previous contents when editing it."'
! !


On Mon, Oct 14, 2019 at 9:31 PM Levente Uzonyi <leves at caesar.elte.hu> wrote:

> These scripts, preamble and postscript are only evaluated when they are
> different than their previous versions. That is why I always suggest
> removing their contents when changing them.
>
> Levente
>
> On Mon, 14 Oct 2019, Marcel Taeumel wrote:
>
> > Well, it seems to be that a "preamble" in a package is not evaluated
> when updating the image. Is this a bug?
> > ChangeSet preambles also don't seem to be prepared to store a script.
> Just a documentation string. Why is that? :-)
> >
> > Best,
> > Marcel
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191014/0ccf1967/attachment.html>


More information about the Squeak-dev mailing list