jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: jed 0.99-17 looks good


Paul Boekholt <p.boekholt@xxxxxxxxx> wrote:
>     return integer(a[np]);
>
>on or near line 185.  Apparently this would give a 0 in slang 1, but gives an
>error in slang 2 when a[np] is not an integer.

The slang2 way of handling this would be to use:

   try
     return integer (a[np]);
   catch ParseError: 
     return 0;

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]