More undocumented programming limitations in the HP Prime
#1

Well, I've found another undocumented limitation with PPL programming. It seems that the LOCAL declaration is limited to a paltry 7 entries, after which it will return a syntax error message when the program is checked. Beyond 7 entries it is necessary a add a second LOCAL declaration for the additional entries, and even more declarations if there are more than 14 entries. This limitation is neither mentioned in the Prime Help nor in the User Guide. Also, the calculator message "syntax error" is really not pertinent, since the statement is syntactically correct, and the message should be something like "exceeds maximum number of 7 entries". A lot of work is needed in documenting the usage of PPL.

Edit. Well after adding a second LOCAL statement, it now appears that the limitation has become 8 entries per LOCAL statement. This is totally confusing.


Edited: 3 Nov 2013, 1:36 p.m.

#2

The limit is 8 for global EXPORTed, global non EXPORTed and LOCAL variables

I got an unofficial information that there is a limit of 16 parameters to functions.

and variables declaration use 2 parameter for each variable

The name and a value

So EXPORT ABC:=123;

use 2 parameters, thus the limit to 8.


An unusual thing is that the value of a program level variable is set only once at parse time. multiple runs of a program do not reset the global variable value until you go to program editor which reparse the program.

#3

Hi,

Here is some info on LOCAL

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=252341#252341


Edited: 3 Nov 2013, 5:58 p.m.

#4

Thanks, Alberto. I missed that earlier thread.



Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming workaround for "prepend" HP PRIME Marek Russ 4 1,983 11-29-2013, 05:46 AM
Last Post: Marek Russ
  hp prime - programming with lists giancarlo 3 1,846 11-10-2013, 02:13 AM
Last Post: Giancarlo
  HP Prime Programming Tutorial #3: WHILE, INPUT, KILL, REPEAT, GETKEY Eddie W. Shore 5 2,307 11-07-2013, 12:25 AM
Last Post: Han
  HP Prime - programming bluesun08 2 1,434 11-04-2013, 04:31 PM
Last Post: bluesun08
  HP Prime questions: I/O and Meta programming Andy Gryc 2 1,480 10-31-2013, 11:22 PM
Last Post: Andy Gryc
  HP Prime Programming Tutorial #1: LOCAL, RETURN Eddie W. Shore 6 2,945 10-26-2013, 08:42 PM
Last Post: Miguel Toro
  HP Prime Programming Tutorial #2: MSGBOX, IF-THEN-ELSE, PRINT, FOR Eddie W. Shore 0 1,230 10-26-2013, 03:51 PM
Last Post: Eddie W. Shore
  HP Prime : Programming and the Comma Miguel Toro 7 2,733 10-25-2013, 12:18 PM
Last Post: Miguel Toro
  HP Prime Programming: LOCAL Alberto Candel 3 1,485 10-07-2013, 01:31 AM
Last Post: cyrille de Brébisson
  HP Prime Programming options Egan Ford 8 2,451 10-06-2013, 10:44 AM
Last Post: Eddie W. Shore

Forum Jump: