[M3devel] "Microlocation"

Olaf Wagner wagner at elegosoft.com
Wed Feb 13 22:38:04 CET 2008


As a first step, I've added p204 to the regression tests in m3tests
which contains this program:

MODULE Main;

IMPORT IO, IP;

CONST
   null = IP.Address{a := ARRAY OF BITS 8 FOR [0..255] {0,0,0,0}};
VAR
   addr: IP.Address;
   one := IP.Address{a := ARRAY OF BITS 8 FOR [0..255] {1,1,1,1}};
BEGIN
   addr := IP.Address{a := ARRAY OF BITS 8 FOR [0..255] {87,250,125,7}};
   addr := null;
   addr := one;
   IO.Put("OK\n");
END Main.

Initializers null and one work, only the one in the main body leads
to code generation errors:

"../src/Main.m3", line 1:  4 code generation errors
1 error encountered

Any volunteers?
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list