It there a way to get this to compile?

Ali Çehreli acehreli at yahoo.com
Mon Sep 9 21:01:36 UTC 2019


On 09/09/2019 01:59 PM, Ali Çehreli wrote:
 > On 09/09/2019 12:08 PM, WhatMeWorry wrote:
 >  > Is this even possible?
 >
 > No because there can't be expressions at module scope.

Attempting to correct myself: I think only declarations are allowed at 
module scope. Non-compile-time statements like for, switch, etc. cannot 
appear at module scope either.

Ali




More information about the Digitalmars-d-learn mailing list