Comparing apples and oranges in AL

In this video, I look at how to compare different data types in AL. I also discovered an obscure, but interesting difference between AL and C/AL, read more below the video.

During the video, I tried to compare a string and an integer, and that did not result in a compiler error? I was puzzled but continued. After I finished recording, I went back to the topic and discovered, that AL can parse a single character string as a Char, not as a Text.

I’m was pretty sure that C/AL didn’t do that, so going back to an ancient version of NAV with C/AL, I remembered correctly:

Doing that in AL is valid and can compile, and shows us that A is 65 (the ascii code value)

Not sure if that’s on purpose, but I dought it has any real-life impact.