On Tuesday, 17 February 2015 at 19:17:42 UTC, Paul wrote:
I don't understand the error and Google doesn't help - can it
be fixed or am I just using the wrong approach?
Trying to create it as a global tries to make it as a static
variable which means it constructs at compile time. It can't
On Tue, 17 Feb 2015 19:56:19 +, Paul wrote:
I see, thanks once again :D I don't know why the environment variable
isn't accessible at compilation (from a terminal)
'cause you can't execute C code in CTFE.
signature.asc
Description: PGP signature
On Tuesday, 17 February 2015 at 19:35:27 UTC, H. S. Teoh wrote:
On Tue, Feb 17, 2015 at 07:17:41PM +, Paul via
Digitalmars-d-learn wrote:
I'd like to create a Terminal using terminal.d and make it
available
across several source files (as a global rather than having to
pass it
around) but
On Tue, Feb 17, 2015 at 07:17:41PM +, Paul via Digitalmars-d-learn wrote:
I'd like to create a Terminal using terminal.d and make it available
across several source files (as a global rather than having to pass it
around) but when I define it like this in global scope:
Terminal Screen =
On Tuesday, 17 February 2015 at 19:29:52 UTC, Adam D. Ruppe wrote:
On Tuesday, 17 February 2015 at 19:17:42 UTC, Paul wrote:
I don't understand the error and Google doesn't help - can it
be fixed or am I just using the wrong approach?
Trying to create it as a global tries to make it as a
On Tuesday, 17 February 2015 at 20:06:15 UTC, Paul wrote:
There doesn't seem to be an alternative to using a pointer as
it's rather a large struct to pass to functions as is!
yeah, copying is disabled too. The struct isn't big in memory
terms (it has few actual data members) but since the
On Tue, Feb 17, 2015 at 07:56:19PM +, Paul via Digitalmars-d-learn wrote:
[...]
I see, thanks once again :D I don't know why the environment variable isn't
accessible at compilation (from a terminal) but that's OS business I guess
rather than D related.
Even if you *could* access it at