Re: ex.err and pro

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

At 02:07 AM 3/27/98 -0500, Wally Riley wrote:

>My program contains a lengthy sequence (I'll call it a 'mega-sequence' in
>this message) consisting of several shorter sequences (without the 'mega'),
>each of which contains two elements.  Each element in these shorter
>sequences is itself a pair of alphabetic characters, which constitutes a
>'mini-sequence'.  In ex.err two of these 'mini-sequences consist of only one
>alphabetic character, and appear in ex.err as atoms.

Here's where I think the TYPE function would be handy.
Instead of declaring *sequence s* you could
then declare it as *element s* and every time anything
was assigned to an element it would be checked for
validity. If you want a dump when the error occurs,
use an *if atom(s) then ? 1/0* statement within the
type function. Then you can see the routine that
just tried to stuff an invalid value into the sequence.
(and the routine that called it, etc.....)

Irv
----------------------------------------------------------
--Visit my Euphoria programming web site:--
--http://www.mindspring.com/~mountains   --
----------------------------------------------------------

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

Search



Quick Links

User menu

Not signed in.

Misc Menu