Menu

Some corrections to Table

Anonymous
2014-04-02
2014-04-04
  • Anonymous

    Anonymous - 2014-04-02

    Obviously, I must be in proofreading mode now! Anyway, while playing with the limits of lookup tables I noticed this. The Help file says:

    First, the table must be created. The code to create a lookup table is simple - a line that has "Table" and then the name of the table, a list of numbers (up to 254), and then "End Table".

    I believe the limit there is actually 255, not 254. At least, I've been able to use 255 entries.

    Secondly, the compiler sometimes doesn't flag tables greater than 255 as an error condition, but just compiles rubbish into the table without complaining.

    So, I think we need two fixes here: most important is to the Help file, but later it might be nice to have the compiler flag tables greater than 255 with an error message.

     
  • Anobium

    Anobium - 2014-04-02

    Thank you. It is good to get the help file improved. I can improve the help file and republish.

    I will add the compiler issue to the know features list.

     

    Last edit: Anobium 2014-04-02
    • Anobium

      Anobium - 2014-04-02

      Replying to my own post...... the newer version of the compiler (the release candidate compiler) only allows 254 elements in a table.

      And, the version I am using..... simply crashes when more than 255 elements.

      Please leave this issue with me, I will look at the code.

       
  • Anonymous

    Anonymous - 2014-04-04

    I believe I have this sorted out. The limit does appear to be 254 as the Help file indicates. Under certain conditions, however, attempting more than this falls through the cracks without proper notification. (The list file does indicate a "warning" however.)

    So, just remember to keep tables 254 bytes or less and you won't go wrong.

     

Log in to post a comment.