New objects from strings

William Taysom <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Is there a way in Steve to make an new object whose type might be 
undetermined when the simulation starts?  For example, one usually 
writes:

+ do-something:
	o (object).

	o = new FunkyObject.
	o init with whatever.
	o shakeALeg.

+ invoke-do-something:
	self do-something.

I want something like:

+ do-something using-a class(string):
	o (object).

	o = magical-new-which-takes-string-argument class.
	o init with whatever.
	o shakeALeg.

+ to invoke-do-something-using-a-class
	do-something using-a "FunkyObject".

Does Steve offer any functionality roughly equivalent to this?

Regards,
William

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
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.