Compile problem "≠"

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

Post Reply
RobertTeeter
Posts: 16
Joined: Tue May 25, 2021 3:56 pm

Compile problem "≠"

Post by RobertTeeter » Thu Jan 04, 2024 6:49 pm

Have Mac 9.6.10 on M1 Mac Mini.. Compiles "≠" with no errors for mac and windows. However, App uns on Mac. Exe does not run on Windows 10 HP laptop.

Have Windows 9.6.2 on HP laptop.. Compile error for "≠". However, will compile "is not". Script:

on mouseDown pButtonNumber
if pButtonNumber = 3 or pButtonNumber = 1 then
if the short name of this card ≠ "Collections" then go card "Collections"
end if
end mouseDown

30 minutes later. Compiled "is not" on Mac 9.6.10. Ran executable on Windows 10 HP laptop. Runs fine. Also runs fine on Mac.

Is this a bug?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Compile problem "≠"

Post by Klaus » Thu Jan 04, 2024 7:01 pm

Hi Robert,

no bug, but one of the light differences between Mac and Windows.
"≠" is definitivley a Mac-only character.

Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Compile problem "≠"

Post by bn » Thu Jan 04, 2024 9:09 pm

Apparently this difference in platforms is resolved as of LC 10.0.0-dp-6. From the release notes:

Bug 17143
The single character operators ≠, ≤ and ≥ now work in scripts on all 10.0.0- platforms

Kind regards
Bernd

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Compile problem "≠"

Post by Klaus » Thu Jan 04, 2024 9:31 pm

AHA! :-)
Good to know, thanks, Bernd!

stam
Posts: 3060
Joined: Sun Jun 04, 2006 9:39 pm

Re: Compile problem "≠"

Post by stam » Fri Jan 05, 2024 9:42 am

To be safe I don't use any more.
<> is more widely used among various programming languages as well as liveCode and is definitely safe across platforms (same for >= and <=).

Mind you I do prefer ≠, ≥ and ≤ but these chars are only really readily available/easily accessible on Mac...

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10077
Joined: Fri Feb 19, 2010 10:17 am

Re: Compile problem "≠"

Post by richmond62 » Tue Jan 09, 2024 12:39 pm

SShot 2024-01-09 at 13.38.33.png
Attachments
operators.livecode.zip
Stack.
(4.56 KiB) Downloaded 66 times

Post Reply