October 26, 2005 Const status not honoured with circular import | ||||
---|---|---|---|---|
| ||||
Using DMD 0.136, Windows 98SE.
----- circular_import_2a.d -----
import circular_import_2b;
const uint len = 42;
----- circular_import_2b.d -----
import circular_import_2a;
int[len] array;
----------
circular_import_2b.d(3): Integer constant expression expected instead of len
circular_import_2b.d(3): Integer constant expression expected instead of len
circular_import_2b.d(3): Integer constant expression expected instead of len
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------
My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
|
October 28, 2005 Re: Const status not honoured with circular import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon Attachments: | Stewart Gordon schrieb am 2005-10-26: > Using DMD 0.136, Windows 98SE. > > ----- circular_import_2a.d ----- > import circular_import_2b; > > const uint len = 42; > ----- circular_import_2b.d ----- > import circular_import_2a; > > int[len] array; > ---------- > circular_import_2b.d(3): Integer constant expression expected instead of len > circular_import_2b.d(3): Integer constant expression expected instead of len > circular_import_2b.d(3): Integer constant expression expected instead of len Added to DStress as http://dstress.kuehne.cn/run/i/import_10_A.d http://dstress.kuehne.cn/run/i/import_10_B.d Thomas |
Copyright © 1999-2021 by the D Language Foundation