1. error when using std/console.e

The following one line program produces an error:



include std/console.e   display( "test" ) 
-- 
 
/root/euphoria/include/std/types.e:742 in type t_display() 
variable Defined_Sets has not been assigned a value 
 
... called from /root/euphoria/include/std/console.e:785 in procedure display() 
 
... called from test.ex:1 






The following one line program works correctly

include std/math.e  ? abs( -5 ) 






The following two line program works correctly

include std/console.e 
display( "test") 


new topic     » topic index » view message » categorize

2. Re: error when using std/console.e

_tom said...

The following one line program produces an error:



include std/console.e   display( "test" ) 
-- 
 
/root/euphoria/include/std/types.e:742 in type t_display() 
variable Defined_Sets has not been assigned a value 
 
... called from /root/euphoria/include/std/console.e:785 in procedure display() 
 
... called from test.ex:1 






The following one line program works correctly

include std/math.e  ? abs( -5 ) 






The following two line program works correctly

include std/console.e 
display( "test") 


Interesting. I was under the impression that executable code was forbidden on the include statement. I would have expected all those one-liners to fail, but with a different error message. I better look into this.

new topic     » goto parent     » topic index » view message » categorize

3. Re: error when using std/console.e

DerekParnell said...
_tom said...

The following one line program produces an error:



include std/console.e   display( "test" ) 
-- 
 
/root/euphoria/include/std/types.e:742 in type t_display() 
variable Defined_Sets has not been assigned a value 
 
... called from /root/euphoria/include/std/console.e:785 in procedure display() 
 
... called from test.ex:1 






The following one line program works correctly

include std/math.e  ? abs( -5 ) 






The following two line program works correctly

include std/console.e 
display( "test") 


Interesting. I was under the impression that executable code was forbidden on the include statement. I would have expected all those one-liners to fail, but with a different error message. I better look into this.

This looks like it is fixed in svn:3238

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu