#423 for i in 1.0b0 bogus /FIX

closed
nobody
None
2
2004-11-21
2003-10-12
No

The "for var in list" allows list to be an arbitrary
expression, and assigns var to the part(var,i)'s when list
is non-atomic, e.g.

for i in a+b+c do print(i)
=> a b c
for i in a/b do print(i)
=> a b (note that this is the nformat'ed version)

But it thinks the bfloat case is nonatomic:

for i in 1.0b0 do print(i)
=> 36028797018963968 1

Fix is easy: in Mdoin (mlisp.lisp), replace atom by $atom
in:

OLD
(SETQ SET (IF (ATOM (SETQ SET (FORMAT1...
NEW
(SETQ SET (IF ($ATOM (SETQ SET (FORMAT1...

Discussion

  • Raymond Toy

    Raymond Toy - 2004-11-21
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2004-11-21

    Logged In: YES
    user_id=28849

    Suggested fix applied.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks