digitalmars.D.learn - Version defined after first use error
- John Simon (14/14) Mar 11 2009 Is there a simple way to do this without getting the "version defined af...
- Kagamin (5/5) Mar 12 2009 version(Ansi) {
- Steven Schveighoffer (7/12) Mar 12 2009 Don't need the ForReal:
Is there a simple way to do this without getting the "version defined after use" error? version(Ansi) { } else version(Unicode) { } else { Version = Unicode; } I've resorted to this, but it seems hackish: version(Ansi) { version = Ansi_ForReal; } else version(Unicode) { version = Unicode_ForReal; } else { Version = Unicode_ForReal; }
Mar 11 2009
version(Ansi) { version = Ansi_ForReal; } else { version = Unicode_ForReal; }
Mar 12 2009
On Thu, 12 Mar 2009 07:19:29 -0400, Kagamin <spam here.lot> wrote:version(Ansi) { version = Ansi_ForReal; } else { version = Unicode_ForReal; }Don't need the ForReal: version(Ansi) { } else { version = Unicode; } -Steve
Mar 12 2009