Page 1 of 1

Compile problem "≠"

Posted: Thu Jan 04, 2024 6:49 pm
by RobertTeeter
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?

Re: Compile problem "≠"

Posted: Thu Jan 04, 2024 7:01 pm
by Klaus
Hi Robert,

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

Best

Klaus

Re: Compile problem "≠"

Posted: Thu Jan 04, 2024 9:09 pm
by bn
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

Re: Compile problem "≠"

Posted: Thu Jan 04, 2024 9:31 pm
by Klaus
AHA! :-)
Good to know, thanks, Bernd!

Re: Compile problem "≠"

Posted: Fri Jan 05, 2024 9:42 am
by stam
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...

Re: Compile problem "≠"

Posted: Tue Jan 09, 2024 12:39 pm
by richmond62
SShot 2024-01-09 at 13.38.33.png