[VPM] Idea

abez abez at abez.ca
Sat Apr 12 00:13:47 CDT 2003


My girlfriend came up with this idea. Using AUTOLOAD in perl you could query
the ``elite user'' that a method was not found using that name and they could
essentially write the new method there on the spot to be run..

they'd be entering input then the program would prompt:

missing method ``soandso'', the user would then write an anonymous sub and
terminate. This sub would be eval'd and added to the namespace.

Hmmm

You could make a really smart autoload which saved the text you typed in and
altered the program text s.t. when you entered a method it was effectively
saved. Then once you did that you could start writing code as a program runs.
So as needed you could write stubs...

abram

-- 
abez ------------------------------------------
http://www.abez.ca/ Abram Hindle (abez at abez.ca)
------------------------------------------ abez



More information about the Victoria-pm mailing list