Hi Piet,

Thanks to you, and everyone for your thoughts on this.

By "external controller code" I mean code that would instantiate, keep track of and manipulate these objects. So the second part of the problem is transfer of control to the new node object. Put another way, in the purest implementation the only code in the tree program would "node code."

Cooperative multitasking where each node could instantiate; and signal, save state and transfer control it's children and vice versa would be one way to do this, but I don't think that's supported in Python...

Thx,
-Rayme.


On Jan 13, 2005, at 4:19 AM, Piet van Oostrum wrote:

Rayme Jernigan <[EMAIL PROTECTED]> (RJ) wrote:

RJ> Hi,
RJ> I'm looking for a language to abuse for a project I'm working on. I know a
RJ> little Python, but I do not know if it can do this: I'd like to define some
RJ> class "N" that instantiates objects that can instantiate fresh new objects
RJ> of that same class... without external controller code.


Every instance of a class can instantiate new objects of that class. I
don't know a programming language where that is not possible. But what do
you mean with external controller code?
--
Piet van Oostrum <[EMAIL PROTECTED]>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: [EMAIL PROTECTED]



_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to