Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #41263] [PDD] should/can high-level classes be constructed at compile-time?

0 views
Skip to first unread message

Allison Randal

unread,
Jan 13, 2007, 1:30:52 PM1/13/07
to bugs-bi...@rt.perl.org
# New Ticket Created by Allison Randal
# Please include the string: [perl #41263]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41263 >


Extracted from ticket # 40443.

We have basically the problem that classes are only constructed at
runtime, which has 2 negative impacts: associating the vtable info with
the class needs some helper storage like the props and namespaces can
only be vaguely attached to the correct class at runtime too.

To get around that the following came to my mind:

- we create a class when needed during compile time
- it gets a flag set (one of private0..7) not_yet_finished_FLAG or such
- newclass, when checking if a class exists, examines that flag and
continues adding the runtime information
- the classes constructed in that way are frozen into the PBC

0 new messages