If you had a const lazy SomeClass con and a lazy SomeClass mut, you
could write mut.x=y but not con.x=y. I think.
On 11/01/2012 04:46, bearophile wrote:
I ask here first before submitting about this to Bugzilla.
If lazy arguments can't be lvalues:
void foo(lazy int x) {
x = x;
}
void
Ben Davis:
If you had a const lazy SomeClass con and a lazy SomeClass mut, you
could write mut.x=y but not con.x=y. I think.
You are right, this code compiles:
struct Foo {
int i;
}
void foo(lazy Foo f) {
f.i++;
}
void main() {}
Thank you,
bearophile
How do you increase floating point precision beyond the default of 6?
example:
double var = exp(-1.987654321123456789);
writeln(var);
-- 0.137016
Assuming this result is only an output format issue and that operations are
still using double's 64 places, if var above is passed to a function, are
On 01/11/2012 03:51 PM, dsmith wrote:
How do you increase floating point precision beyond the default of 6?
example:
double var = exp(-1.987654321123456789);
writeln(var);
-- 0.137016
Assuming this result is only an output format issue and that operations are
still using double's 64 places,
On Friday, January 6, 2012, Jonathan M Davis jmdavisp...@gmx.com wrote:
The same way that you would in C++ or Java, except that unlike you have
static
The most simple and elegant way in java is to use an enum. Is there nothing
comparable in D?
All is passed, to print, say, 50 signs after period use following:
writefln(%.50f, var);
2012/1/12 dsmith dsm...@nomail.com:
How do you increase floating point precision beyond the default of 6?
example:
double var = exp(-1.987654321123456789);
writeln(var);
-- 0.137016
Assuming this
On Thursday, January 12, 2012 00:55:14 Thomas Mader wrote:
On Friday, January 6, 2012, Jonathan M Davis jmdavisp...@gmx.com wrote:
The same way that you would in C++ or Java, except that unlike you have
static
The most simple and elegant way in java is to use an enum. Is there nothing