You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when running the same code in Neo, it ends up considering the number of bytes instead of the number of characters, so, every time a char that is not present in the ASCII table is used, the behaviour will diverge from C#.
The text was updated successfully, but these errors were encountered:
@shargon The compiler is the only one who knows that this is an string, but not the VM. What we probably need, is to add a 'stringSize', in addition to the 'size' opcode - and make the compiler use the correct one. There should be a need of adding other opcodes to be able to work with UTF-8 strings properly
Using operations relating to characters is not working as intended, e.g.,:
Running the code above in C# results in:
However, when running the same code in Neo, it ends up considering the number of bytes instead of the number of characters, so, every time a char that is not present in the ASCII table is used, the behaviour will diverge from C#.
The text was updated successfully, but these errors were encountered: