Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

logical operator inconsistency in Notepad++ #274

Open idealkindom opened 3 months ago

idealkindom commented 3 months ago

Since "=="could be recognized in Calcpad input, a cpd file edited with Notepad++ with logical operator such as"==" oncurrs errors.

Proektsoftbg commented 3 months ago

Hi! When and how exactly the error occur. Actually, == is not a native Calcpad operator. It is a shortcut (alias) of the operator ≡ for easier typing. It converts to ≡ after you leave the current line. Conversion is performed also when a file is opened and loaded into the Calcpad editor.

idealkindom commented 3 months ago

Hi! When and how exactly the error occur. Actually, == is not a native Calcpad operator. It is a shortcut (alias) of the operator ≡ for easier typing. It converts to ≡ after you leave the current line. Conversion is performed also when a file is opened and loaded into the Calcpad editor.

If I did not recall it wrong, the problem happens when "==" is used in macro file that referred to by using #include *.cpd. Also I found trigger-flip selection can not work when it's defined in a subroutine file included by main program sheet.However, the radio button selection works.

Proektsoftbg commented 3 months ago

Hi! This is because the external module is not loaded in Calcpad editor and not preprocessed. Before using the code in the module, open it with Calcpad to get all shortcuts replaced by the real operators.

As already mentioned, == is not a language feature but a code editor feature for faster typing.

idealkindom commented 3 months ago

Al right , just use Calcpad to open and save it before it is referenced.

在 2024-02-16 20:40:41,"Ned Ganchovski" @.***> 写道:

Hi! This is because the external module is not loaded in Calcpad editor and not preprocessed. Before using the code in the module, open it with Calcpad to get all shortcuts replaced by the real operators.

As already mentioned, == is not a language feature but a code editor feature for faster typing.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>