[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WARNING! New experimental feature in the development version!
[Thread Prev] | [Thread Next]
- Subject: Re: WARNING! New experimental feature in the development version!
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Wed, 25 Mar 2026 10:02:13 -0700
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 3/25/26 08:14, Benoît Minisini wrote:
Hi, I have just pushed a new experimental feature: two pass compilation. This new compiler feature allows to detect unknown symbols.I added an option for that in the compiler, and a corresponding button in the project property in the IDE.The compiler flag for using two pass is '-p'.Beware that this is experimental, and that even if the option is not activated, there may be bugs that make the compilation fail, or worse make the interpreter crash because of a bug in the compiler.So be careful, save your projects, and tell me immediately if you encounter any bug or crash.As written in the window of the development version of the IDE, "USE AT YOUR OWN RISK!".This feature is not fully finished. At the moment it cannot detect symbols from classes whose name is not explicitly written in the code.For example, "A.B.C" is not checked if the class of "A.B" is not declared anywhere.All that is based on the following process:- Each component and library used by the project is loaded in the first pass.- An information file is generated for each project class in the '.desc' directory.- These files are loaded on demand during the second pass (the real compilation).At the moment, only unknown symbols are detected. But in the future, more errors may be detected: Bad number of arguments in a method call, suspicious type conversion... If you have any idea about that tell me.I apologize in advance for any problem you will encounter. Best regards,
Looking at the new code you added,Would it now be possible to make things such as public structures into a now global asset, where if defined once, can be accessed anywhere within the app?
looks like the gbc_info interface may allow that type of extension/globalization. such that one would not have to copy paste structures into each file they are used in and not have to incur the overhead of using a class interface to make they global.
-- ~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
| Re: WARNING! New experimental feature in the development version! | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| WARNING! New experimental feature in the development version! | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |