Re: A question - or two
- Posted by mattlewis (admin) May 10, 2010
- 1149 views
does info.e exist somewhere?
Yes, it is in include/euphoria.
I have been working with euphoria 4.0 for sometime now. I have been bothered by a nagging suspicion. It seems that when a program passes about 350 lines I start to have issues (?). As an example, a switch sequence where, for some reason, a case statement that has always worked now gives an error (case statement must be inside a switch block). Another example, reading a key value from a database. Key is a string sequence. Sometimes it works; sometimes I get an error message telling me that there are sequences inside the key or there are too few or many items to print. dump() shows key is correct - a sequence of ascii characters. If I use an sprintf("%s",db_record_key(rcd)) to, I suppose, recreate the string all is OK.
I'm not aware of anything like this, but I'd be very interested if you can provide an example. Also, what version of euphoria are you running?
Is there a limit to the size of a sequence (other than the obvious one). When sequences get very long (1 million integers - single atoms) I seem to run into machine level errors.
The limit is the size of a euphoria integer, or RAM, whichever runs out first (which at this point, should always be RAM, though that might change when euphoria goes 64-bit). It's possible that the error is happening due to a failure to realloc the RAM for the sequence. Euphoria should give you an out of memory error. Again, a simple example to demonstrate would be very much appreciated.
Matt