Euphoria Ticket #227: There is no init checking for constants

In svn:3490 the following code crashes:

include std/machine.e 
atom x = allocate( 4 ) 

std/io.e allocates some memory, but due to the way std libs are included, when this occurs, the constants in memconst.e have not been initialized yet.

Details

Type: Bug Report Severity: Major Category: Interpreter
Assigned To: mattlewis Status: Fixed Reported Release: 3490
Fixed in SVN #: 3491 View VCS: 3491 Milestone:

1. Comment by mattlewis Oct 10, 2010

Added init checks for constants that can't be resolved at runtime. Switched around the include order for memory.e and machine.e to make sure those constants get defined before they're used.

Search



Quick Links

User menu

Not signed in.

Misc Menu