Quantum Superposition Observed in DMD at Compile Time
Ataide
ataide at gmail.com
Tue Jul 2 14:44:38 UTC 2019
On Monday, 1 July 2019 at 05:57:25 UTC, John Colvin wrote:
> Here's a simpler example...
Sorry to disturb here, but I tried to post over Learn but got a
Forum error.
Could you tell me why I am getting error on this code:
//DMD64 D Compiler 2.072.2
import std.stdio;
void main(){
static foreach(i;[1,2,3]){}
}
Error(s):
source_file.d(4): Error: basic type expected, not foreach
source_file.d(4): Error: no identifier for declarator _error_
Thanks.
More information about the Digitalmars-d
mailing list