Re: Switch question - yet again!

new topic     » goto parent     » topic index » view thread      » older message » newer message
PeteE said...

I tried reducing the test case. I think it comes down to using an integer with a delete routine attached as a case value. (stack.e uses eumem.e which uses delete routine) I filed a ticket.

procedure delete_proc(object x) 
  puts(1, "deleting ") 
  ? x 
end procedure 
 
constant op = delete_routine(1, routine_id("delete_proc")) 
 
switch op do 
  case op then 
    puts(1, "in first case...\n") 
end switch 

deleting 1 
 
/home/pete/Downloads/euphoria-4.1.0-Linux-x64/switchdelete.ex:8 
A machine-level exception occurred during execution of this statement (signal 11)  
 
--> See ex.err  

And... six years later, 4.2 gives the same error.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu