2010/7/8 Mariano Martinez Peck <[email protected]>

>
>
> 2010/7/8 Guillermo Polito <[email protected]>
>
> Why not add an extension to the #subclass: method family like
>>
>> Object subclass: #AppRegistry
>>     instanceVariableNames: ''
>>     classVariableNames: ''
>>     poolDictionaries: ''
>>     pragmas: '<pragma1> <pragma2>'
>>     category: 'System-Applications'
>>
>>
> good idea. But then, you need to have a collection of Pragmas in Behavior,
> ClassDescription or similar.  Did I understand well?
>
>
Here are two mixed up concerns.  Where should the class pragmas stored, and
where should them be defined.  I think it is practical to define them in the
class definition...  Then they can be stored as:

- a collection of pragmas in each class, which make us have a collection per
class.
- a pragmas string definition in each class, which make us "compile" or
"parse" (I don't know how is this working now) the class pragmas when them
to a class.
- a global dictionary? Puaj.

Where would you like to store a class pragma instead?
I thought the class or the behaviour was the place to store it...

Anyway, where are the method pragmas stored today?  In the CompiledMethod?



>
>
>
>> ?
>>
>>
>> On Thu, Jul 8, 2010 at 12:54 PM, Alexandre Bergel <[email protected]>wrote:
>>
>>> > May be using a class method?
>>> > But yes this would be important.
>>>
>>> The initialize method of the metaclass maybe.
>>>
>>> Alexandre
>>>
>>> >
>>> > On Jul 8, 2010, at 3:35 PM, Torsten Bergmann wrote:
>>> >
>>> >> Hi,
>>> >>
>>> >> while it is possible to annotate methods using Pragmas,
>>> >> what about classes?
>>> >>
>>> >> Thx
>>> >> T.
>>> >> --
>>> >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
>>> >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>>> >>
>>> >> _______________________________________________
>>> >> Pharo-project mailing list
>>> >> [email protected]
>>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>> >
>>> >
>>> > _______________________________________________
>>> > Pharo-project mailing list
>>> > [email protected]
>>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [email protected]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to