[IronPython] Decorators on classes

Curt Hagenlocher curt at hagenlocher.org
Mon Feb 4 15:17:54 PST 2008


Here's an implementation idea that may require less work at the expense of
less-elegant syntax.

class X(object, clr.AttributeBase(System.SerializableAttribute))
    pass

NewTypeMaker would look for base classes of whatever built-in type is
returned by clr.AttributeBase and would use that information to decorate the
generated type.

--
Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080204/4af5a01e/attachment.htm 


More information about the Users mailing list