Sean Jamieson wrote:
> While I was reading this topic, something just tickled my brain. I
> remember that Kevin had mentioned somewhere (screencast probably) about
> the posibility of widgets being defined as classes (ref. SQLObject),
> rather than with an instantiated object, and a dictionary of fields.
>
> I've been reading about metaclasses recently, and I think it would be
> quite possible to create a meta class, that processes a class
> definition, and produces something that returns the exact same
> structure as currently used in widgets.
>
> What do you think, insane or interesting?
>

IMHO? insane... :D

That's not how an object is supposed to work, why should we use a class
instead of an instance? it's just not how OOP works and that's why you
can't do that without resorting to metaclass magic, I hope TG will
never do something similar because that could really be confusing and
feel strange to everyone.

But that's only my opinion. ;-)

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to