Question regarding the "as" keyword in MetaEditor 5

 
Hello everyone,
I have a technical question that leaves me perplexed, and the official documentation has not been helpful.
I noticed that in MetaEditor 5 (latest version), the word "as" is highlighted in blue (like a reserved keyword) and appears in autocomplete suggestions.
However, my research shows that it is never mentioned as an official reserved keyword (unlike int, if or double).
I would like to understand its exact meaning and whether it is safe to use as a variable name, or if it has a hidden function that I should be aware of.
Thank you in advance for your help!
 
There is no “as” keyword. Without code, we can only guess.
 
Johanny Perin Tankeu Tenembot:

I've applied automatic translation to your post. On the English forum, please write in English.

"as" is indeed highlighted in MetaEditor, but is not mentioned in the documentation or in the MetaTrader 5 release notes.

Here's what I found in the release notes from October 26, 2018:

https://www.metaquotes.net/en/metatrader5/news/5131

Added support for the inline, __inline and __forceinline specifiers when parsing code. The presence of the specifiers in the code causes no errors and does not affect the compilation. At the moment, this feature simplifies transferring С++ code to MQL5.

Perhaps "as" was added for some similar reason.

Furthermore, eight months ago, MetaQuotes' CEO announced that

The compiler will be able to work with Visual Studio projects and natively compile C/C++ projects to create MQL5 modules/libraries

"as" may have been added in preparation for this. But we can only guess.

Johanny Perin Tankeu Tenembot:
and whether it is safe to use as a variable name

In my personal opinion, this is a bad idea.

 
William Roeder #:
There is no “as” keyword. Without code, we can only guess.

Yes there is an 'as' keyword.  It's used with resource.

#resource "Python/model.onnx" as uchar ExtModel[]
Documentation on MQL5: Resources / MQL5 programs
Documentation on MQL5: Resources / MQL5 programs
  • www.mql5.com
Programs in MQL5 allow working with sound and graphic files: PlaySound() plays a sound file; ObjectCreate() allows creating user interfaces using...
 
Vladislav Boyko #:

"as" is indeed highlighted in MetaEditor, but is not mentioned in the documentation or in the MetaTrader 5 release notes.

Here's what I found in the release notes from October 26, 2018:

Perhaps "as" was added for some similar reason.

Furthermore, eight months ago, MetaQuotes' CEO announced that

"as" may have been added in preparation for this. But we can only guess.

In my personal opinion, this is a bad idea.

Given the information provided by Alain Verleyen, I must note that my answer, which I quote, is incorrect.