routine_id an euc

new topic     » topic index » view thread      » older message » newer message

when running a program with eui one can use routine_id() with a variable and it works but if one compile the program with euc the program exit. exemple:

procedure proc1() 
 puts(1,"proc1\n") 
end procedure 
 
procedure proc2() 
 puts(1,"proc2\n") 
end procedure 
 
sequence s 
 
while 1 do 
  puts(1,"proc? ") 
  s= gets(0) 
  s=s[1..$-1] 
 puts(1,'\n') 
 if  not length(s) then abort(0) end if 
 call_proc(routine_id(s)) 
end while 

This work with eui but not when the program is converted in C and compiled. I guess this is because routine names are lost at conversion.... Too bad.

Jacques

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu