routine_id evaluation
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Dec 02, 2000
- 571 views
Robert, I don't suppose you'd consider allowing routine_id to be evaluated at run-time rather than at "compile" time? eg. in foo.e I have ... sequence handles handles = {} global function setHandle(atom handletype, sequence procname) integer p if handletype >1 and handletype < 10 then p = routine_id(procname) handles &= {handletype, procname, p} return p else return -1 end if end function and in bar.e I have ... include foo.e X = setHandle(1, "routineX") Y = setHandle(2, "routineY") procedure routineX() end procedure procedure routineY() end procedure etc.... ------ Derek Parnell Melbourne, Australia (Vote [1] The Cheshire Cat for Internet Mascot)