help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] FileOut with class pragmas


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] FileOut with class pragmas
Date: Mon, 03 Jun 2013 22:55:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Il 03/06/2013 18:03, Holger Hans Peter Freyther ha scritto:
> Hi,
> 
> I am using class pragmas inside my GSM Information Element classes
> to describe the assigned identifier, valid sizes and other information
> but when doing a fileOut this information is lost.
> 
> I think this is because I am not changing classPragmas to add my new
> class pragmas.

Yes.

> Is this something we could/should warning about?

Not for all pragmas; some (import:, shape:) are filed out automatically.
 But these are just a few, they could be special cased out.  Otherwise
it seems like a useful warning.

Paolo

> 
> PackageLoader fileInPackage: 'Parser'.
> 
> Object subclass: Foo [
>    Foo class >> extraPragma: aName [
>    ]
> 
>    <extraPragma: 123>
> ]
> 
> Foo fileOutOn: stdout.
> 
> 
> 
> 
> _______________________________________________
> help-smalltalk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-smalltalk
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]