home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
packs
/
idol
/
strinvok.iol
< prev
next >
Wrap
Text File
|
2000-07-29
|
434b
|
19 lines
#
# a builtin class, subclasses of which support string invocation for methods
# (sort of)
# this is dependent upon Idol internals which are subject to change...
#
class strinvokable()
method eval(s,args[])
i := 1
every methodname := name(!(self.__methods)) do {
methodname[1 : find(".",methodname)+1 ] := ""
if s == methodname then {
suspend self.__methods[i] ! ([self]|||args)
fail
}
i +:= 1
}
end
end