Ciekawe. Nie no dużych podobieństw do C# nie widzę, to jakaś dziwna hybryda C# z C++ i elementów nie wiem czego... pascala? Na pierwszy rzut oka to takie C++/CLI pisane na kolanie, jakby na siłę próbowali zrobić język którego nie będzie się miło używało. Przeglądając szybko dokumentację:
All declarations must be at the start of the method, before any X++ statements.
Dlaczego?!
In C# you can declare the counter integer in the for statement. But in X++ the counter must declared outside the for statement.
?? czemu
In X++ the modulo operator is mod.
:|
There is no char or character type in X++. You can declare a str of length one, but it is still a string: str 1 myString = "a";
...
The if statement accepts any type of expression that it can automatically convert to a Boolean. Common examples include an int for which 0 means false, or an object for which null means false.
czyli jak w c, powrót do yoda notation
An ++ increment operator is available in X++. But an int variable that is decorated with ++ can only be used as a statement, not as an expression. For example, the following lines of X++ code would not compile: int age=42; print age++;
The == and != operators are case insensitive in X++
"HELLO" == "hello"
True in X++.
wtf
Delete the Second Item
literator.begin();
literator.next();
literator.delete();
Błagam żebym nigdy nie musiał dotykać tego języka.