[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] assignment of nested records
From: |
Martin Kalbfuß |
Subject: |
[Gm2] assignment of nested records |
Date: |
Sat, 12 Dec 2009 02:12:46 +0100 |
Hi,
This code doesn't work. But following the siso tandard it should.
The compiler should now the nested type from the record.
I think the same is true for multidimensional arrays. But I didn't
checked this.
MODULE nested;
IMPORT EXCEPTIONS;
TYPE NestedRecord = RECORD
firstMember : INTEGER;
secondMebmer : INTEGER;
END;
TopRecord = RECORD
firstMember : NestedRecord;
secondMember : INTEGER;
END;
VAR topRecord : TopRecord;
BEGIN
topRecord := TopRecord{ { 1, 2 }, 3 };
END nested.
Thanks,
--
Martin Kalbfuß <address@hidden>
- [Gm2] assignment of nested records,
Martin Kalbfuß <=