Post Reply 
New Version: 2016.12.08 1.3.1.11226 [UPDATED]
12-22-2016, 09:28 AM
Post: #49
RE: New Version: 2016.12.08 1.3.1.11226 [UPDATED]
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.

/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 09:28 AM



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