Dear Hung Hung,
It is a convention of M2 since its invention to null (0C) terminate strings. This is not enshrined in the syntax, but clearly “supported” by it (e.g. by open arrays and their indexing etc.). The semantic interpretation of strings to be null terminated
I would call more or less “mandatory” and therefore every compiler, not only gm2, should respect this. I would personally immediately ignore any M2 compiler that would not do so.
Hope this answers your question.
Regards, Andreas
ETH Zurich, Prof. em. Dr. Andreas Fischlin, IPCC Vice-Chair WGII, Systems Ecology, CHN E 24, Universitaetstrasse 16, CH-8092 Zurich, SWITZERLAND
I read on
modula2.org it said for compatitbity strings in modula-2 also null terminated. But it's particular to their adw compiler. What about gm2?