slang-users mailing list

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

Re: [slang-users] slang2 pre-release snapshot 4 available


On Mon, 7 Feb 2005 01:35:24 -0500, "John E. Davis" said:

> A a new development snapshot of slang2 is available:

>   <ftp://space.mit.edu/pub/davis/slang/2.0-devel/slang-pre2-r4.tar.gz>

I'm running into problems with my gdbmrecent JED mode, which tries to parse
the string "1107859249:33:1" into a timestamp and line and column numbers.
extract_element("1107859249:33:1", 0, ':') is returning "1107859249:33:1" and
integer("1107859249:33:1") is giving a syntax error.  The documentation says: 

   If the string does not form a valid
   integer, a type-mismatch error will be generated.

But a syntax error is not a type-mismatch error.

extract_element("1107859248:33:1", 0, ':') works fine.  So does
extract_element("1107859239:33:1", 0, ':')
etc, etc.

Incidentally, I can avoid this problem by using my atoi() function instead
of integer().  I thought there would be a new atoi() or strtol()?

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


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