Menu

#42 LONGWORDLIST (DLST) doesn't work with negative entries

open
None
5
2005-03-29
2005-02-11
Anonymous
No

I have a list of more than 5000 entries, both positive
and negative values. I try to add it as DLST. I get a
garbage value at position 2048 and it stops at 0x0C01.
Please see the attached cosinus.rcp which I included
into my main.rcp file just at the beginning.

Henk Jonas
metaview@web.de

Discussion

  • Nobody/Anonymous

    added to main.rcp using #include "cosinus.rcp" at the beginning of main.rcp

     
  • John Marshall

    John Marshall - 2005-03-10

    Logged In: YES
    user_id=4669

    It's not the length of the list that's causing the problem, but rather the
    negative entries which are treated as expressions to be evaluated,
    because we don't have a unary minus. That is - as usual, you've been
    bitten by PilRC's crappy syntax.

    e.g. "longwordlist id 1 begin 1 12 -5 2 end" gives (1 7 2) because that's
    what 12-5 evaluates to. You can get the desired result with e.g. "begin 1
    12 (-5) 2 end", but to be sure that's going to get tedious fast.

    There may be a viable solution, but it'll require some thought.

     
  • John Marshall

    John Marshall - 2005-03-10
    • summary: LONGWORDLIST (DLST) doesn't work for long lists --> LONGWORDLIST (DLST) doesn't work with negative entries
     
  • John Marshall

    John Marshall - 2005-03-29
    • assigned_to: nobody --> jmarshall
     

Log in to post a comment.