Re: Enter procedures externally
- Posted by Martin Stachon <martin.stachon at worldonline.cz> May 25, 2002
- 436 views
Goede dag, Antoine, > Dobar den, Martino( I don't remeber the correct declination). Dobry den, Martine, but sure better then my Dutch > I guess your method has to fail if > 1) Win32lib was included after the location of this function > 2) The interpreter will not know which functions to include > and might throwout some of those, user might want to enter. > Remember the new way include-files are handled? Not sure whether I got your point, just what refman says: The routine named by st must be visible, i.e. callable, at the place where routine_id() is used to get the id number. Indirect calls to the routine can appear earlier in the program than the definition of the routine, but the id number can only be obtained in code that comes after the definition of the routine. I don't see why it should fail. But method like this: s = parse(s) if equal(s, "example") then example() elsif ... would be better for security reasons. But the "Execution of strings" theme has been discussed many times on the list. Martin