[Jprogramming] Handling NaN error with #:_

Brian Schott schott.brian at gmail.com
Mon Mar 17 04:42:43 HKT 2008


Anssi,

=09Do either of these alternatives work for you?

   antibase =3D: #: :: ($@[$_:)
   0 100 100 antibase _
_ _ _
   antibase =3D: #: :: ($@[{._:)
   0 100 100 antibase _
_ 0 0


On Sun, 16 Mar 2008, Anssi Sepp=E4l=E4 wrote:

The very original idea was to present dates as integers in form
yyyymmdd like 20080316 and undefined future date as infinity _. To
parse year month and day from this was easy 0 100 100#:20080316 =3D>
2008 3 16. Also 0 100 100#:_ gave result _ 0 0.

Thanks to NaN error  I must scan a lot of old code to make programs
running again. So todayno is not the problem but #: with infinity is.

Anssi



More information about the Programming mailing list