Post Reply 
New Version: 2016.12.08 1.3.1.11226 [UPDATED]
12-22-2016, 12:12 PM
Post: #51
RE: New Version: 2016.12.08 1.3.1.11226 [UPDATED]
(12-22-2016 09:28 AM)lenborje Wrote:  I've have problems running a program in the Mac emulator, which is reported to work in the PC emulator.

(Cf. http://www.hpmuseum.org/forum/thread-2537.html)

I've tried to pinpoint the root of the problem and found that at least the built-in head and tail functions do not work as expected in the Mac Emulator. (Apparently they do in the PC Emulator, cf. the thread above.)

The functions do not seem to work when the parameter is a local variable.

The following program returns {17, 42} on my HW Prime, version 10637, but el on the Mac Emulator Prime, version 11226:

Code:
EXPORT FOO()
BEGIN
  LOCAL el={{17,42},{13,24},{42,1}};
  RETURN head(el);
END;

Calling head on global variables works OK, e.g.
Code:
L0:={17,47111,42};
RETURN head(L0);

returns 17 as expected.

Even more weird, when I start the Emulator from the command line, i.e. do:
Code:
$ /Applications/HP\ Prime.app/Contents/MacOS/HP\ Prime
both the FOO program and my Soduko work as expected, but if I open the emulator by clicking on the icon in the dock, or by:
Code:
$ open /Applications/HP\ Prime.app
FOO returns el as shown above.

At least I now have a workaround.

[/code]

/Lennart Börjeson
Stockholm, Sweden
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New Version: 2016.12.08 1.3.1.11226 [UPDATED] - lenborje - 12-22-2016 12:12 PM



User(s) browsing this thread: 3 Guest(s)