Re: Initialize to None

2020-09-05 Thread N.S. via Digitalmars-d-learn
On Sunday, 6 September 2020 at 05:06:26 UTC, starcanopy wrote: On Sunday, 6 September 2020 at 03:42:36 UTC, N.S. wrote: I'd like to check whether a variable is initialized or not. And I'd also like to uninitialize a variable that is already initialized. Thanks! int x = void; if (x == void)

Re: Initialize to None

2020-09-05 Thread starcanopy via Digitalmars-d-learn
On Sunday, 6 September 2020 at 03:42:36 UTC, N.S. wrote: I'd like to check whether a variable is initialized or not. And I'd also like to uninitialize a variable that is already initialized. Thanks! int x = void; if (x == void) { writeln("x not initialized"); } else { // OK, use x }

Re: Initialize to None

2020-09-05 Thread N.S. via Digitalmars-d-learn
On Sunday, 6 September 2020 at 03:56:51 UTC, Steven Schveighoffer wrote: On 9/5/20 11:42 PM, N.S. wrote: I'd like to check whether a variable is initialized or not. And I'd also like to uninitialize a variable that is already initialized. Thanks! int x = void; if (x == void) There isn't a

Re: Initialize to None

2020-09-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/5/20 11:42 PM, N.S. wrote: I'd like to check whether a variable is initialized or not. And I'd also like to uninitialize a variable that is already initialized. Thanks! int x = void; if (x == void) There isn't a way to check this. {     writeln("x not initialized"); } else {     //

Initialize to None

2020-09-05 Thread N.S. via Digitalmars-d-learn
I'd like to check whether a variable is initialized or not. And I'd also like to uninitialize a variable that is already initialized. Thanks! int x = void; if (x == void) { writeln("x not initialized"); } else { // OK, use x } // Uninitialize x x = void;

Re: Where can I find the DEFINITION of vibe IOMode ??

2020-09-05 Thread drug via Digitalmars-d-learn
05.09.2020 23:19, Andy Balba пишет: https://github.com/vibe-d/eventcore/blob/a027c233c2542de8372bbff25d0a4804f32a094e/source/eventcore/driver.d#L1087 @drug: thank you..I'm now left with resolving @blocking you are welcome! Probably this?

Re: Where can I find the DEFINITION of vibe IOMode ??

2020-09-05 Thread Andy Balba via Digitalmars-d-learn
On Saturday, 5 September 2020 at 19:22:17 UTC, drug wrote: 05.09.2020 22:17, Andy Balba пишет: Where do I fine where IOMode is defined..  as in the last line of ... module vibe.core.stream; import vibe.internal.traits : checkInterfaceConformance, validateInterfaceConformance; import

Re: Where can I find the DEFINITION of vibe IOMode ??

2020-09-05 Thread drug via Digitalmars-d-learn
05.09.2020 22:17, Andy Balba пишет: Where do I fine where IOMode is defined..  as in the last line of ... module vibe.core.stream; import vibe.internal.traits : checkInterfaceConformance, validateInterfaceConformance; import vibe.internal.interfaceproxy; import core.time; import

Where can I find the DEFINITION of vibe IOMode ??

2020-09-05 Thread Andy Balba via Digitalmars-d-learn
Where do I fine where IOMode is defined.. as in the last line of ... module vibe.core.stream; import vibe.internal.traits : checkInterfaceConformance, validateInterfaceConformance; import vibe.internal.interfaceproxy; import core.time; import std.algorithm; import std.conv; public import

Compile code for PowerNex OS

2020-09-05 Thread Quantium via Digitalmars-d-learn
I have a code that I need to compile for PowerNex OS, which compiler should I use and how to compile code for PowerNex?