Re: Re: Re[2]: Re: class proposal

Serge Orlov <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Mark Hahn wrote:
> Lenard Lindstrom wrote:

>> Prothon prototypes do  not give one a simpler alternative
>> to metaclasses as
>> claimed. It simply does not allow it, period.

> Why haven't you told me this before?  :-(

> Can you show me a metaclass example that Prothon cannot handle?  I would
> like to understand this situation better.

Python metaclasses can act as decorators
http://www.python.org/doc/essays/metaclasses/

scroll down to "Real-life Examples"

My short comments:

Enum.py -- shouldn't not be a class in the first place
Eiffel.py -- decorator
Synch.py -- decorator

  -- Serge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.