On Friday, 14 June 2019 at 11:10:58 UTC, rumbu wrote:
On Friday, 14 June 2019 at 07:52:24 UTC, Marco de Wild wrote:
On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
Opposed to Java, D's member variables are static initialised.
Is there any documentation about this? I find it unexpected.
On Friday, 14 June 2019 at 07:52:24 UTC, Marco de Wild wrote:
On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
Opposed to Java, D's member variables are static initialised.
Is there any documentation about this? I find it unexpected.
On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
Hi,
my name is Mike and I'm new to D (coming from a Javabackground)
and for fun I'm trying to learn D now.
I created a simple class
class Block {
int a, b;
this() {}
}
And now I have a dynamic array of objects of thi
On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
How would a proper destructor of class Foo look like?
Is it enough to set "array" to null? Or do I have to set every
element of the array to null and then the array, or nothing of
that at all because the garbage collecter collects it, if th
On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
or nothing of that at all because the garbage collecter
collects it, if the reference to Foo is set to null?
That. [The init loop can be shortened to `foreach (ref b; array)
b = new Block();`.]
Hi,
my name is Mike and I'm new to D (coming from a Javabackground)
and for fun I'm trying to learn D now.
I created a simple class
class Block {
int a, b;
this() {}
}
And now I have a dynamic array of objects of this class in
another class:
class Foo {
Blo
On Monday, 27 June 2016 at 22:00:15 UTC, gummybears wrote:
Hi,
Today thought lets learn D. I am writing a compiler for a
language
and read D compiles very fast.
Switched my compiler from C++ to D and ran my test suite to use
D.
Doing somethin wrong as creating array of objects gives me a
seg
Hi,
Today thought lets learn D. I am writing a compiler for a language
and read D compiles very fast.
Switched my compiler from C++ to D and ran my test suite to use D.
Doing somethin wrong as creating array of objects gives me a
segmentation fault
Example
import std.stdio;
class Pair {
fl