Re: Enter procedures externally
- Posted by Martin Stachon <martin.stachon at worldonline.cz> May 26, 2002
- 427 views
This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C204BA.0B915FE0 charset="iso-8859-1" Antoine wrote: > It's only 1 word in Dutch, Martine and it has an 'n' in it. Ok, I'm just aimed with poor knowledge of German :) > I'm rusty on Slavic languages now, it's 6 years I didn't visit Czechia, > and I tend to mix up Czech, Slowak and Polish, sorry for that. That's ok, I know it must be difficult to remeber all the declinations... May I know what were you doing here? > Goedendag would be correct, with capital G or undercast g. I'm sorry to have > to point out that > you didn't evaluate the second reason, you ought to know that the new > interpretertrows out every > function, variable or constant it doesnot find as being used in the files you present it. The interpreter doesn't throw away any functions, only the new 2-pass binder. When it encounters something like routine_id(var) than it removes no routine. I've just tried it with attached code. > THIS WILL ONLY INCLUDE NAMED FUNCTIONS, not functions entered that will be > input from a dedicated > functionlike the one we are talking about, BECAUSE the interpreter has no way > of knowing what > user is going to enter in the <call-determining> function!! If you mean that user supplies a function code at runtime, then yes, this would require an Eu-inside-Eu interpreter (I think there's a one in archives) Martin ------=_NextPart_000_0026_01C204BA.0B915FE0 Content-Type: application/octet-stream; name="test.ex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.ex" include get.e procedure test1() ?1 end procedure procedure test2() ?2 end procedure sequence s integer rid while 1 do s= prompt_string(">") rid=routine_id(s) if rid=-1 then exit end if call_proc(rid, {}) end while ------=_NextPart_000_0026_01C204BA.0B915FE0--