www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Const status not honoured with circular import

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
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.
Oct 26 2005
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFDYiGd3w+/yD4P9tIRAlcdAKCDDCeB2gUu6ToZwwbHI1aHplLdoQCaA92Y SYNyxQEJsMez7vE4hENQn88= =9kCo -----END PGP SIGNATURE-----
Oct 28 2005