On Tuesday, 28 August 2012 at 11:06:51 UTC, Simen Kjaeraas wrote:
On Tue, 28 Aug 2012 12:10:47 +0200, monarch_dodra
wrote:
From TDPL: 7.18:
"Unlike classes nested within classes, nested structs and
nested classes within
structs don’t contain any hidden member outer—there is no
special code
On Tue, 28 Aug 2012 12:10:47 +0200, monarch_dodra
wrote:
From TDPL: 7.18:
"Unlike classes nested within classes, nested structs and nested classes
within
structs don’t contain any hidden member outer—there is no special code
generated.
The main design goal of nesting such types is to en
On Monday, 27 August 2012 at 18:53:23 UTC, bearophile wrote:
Andrej Mitrovic:
Isn't this limited to just classes?
See the last section of this page:
http://dlang.org/struct.html
Nested Structs: A nested struct is a struct that is declared
inside the scope of a function or a templated struct
Andrej Mitrovic:
Isn't this limited to just classes?
See the last section of this page:
http://dlang.org/struct.html
Nested Structs: A nested struct is a struct that is declared
inside the scope of a function or a templated struct that has
aliases to local functions as a template argument.
On 8/27/12, bearophile wrote:
>Truly inner structs like Baz
> should have a hidden pointer field that points to the enclosing
> struct.
Isn't this limited to just classes?
monarch_dodra:
What exactly does it mean when you put static in front of a
struct _definition_ (not instance) ?
EG:
static struct S
{
static struct SS
{
}
}
As opposed to
struct S
{
struct SS
{
}
}
For the outer struct S I think it means nothing, it's just the
stupid DMD compi
What exactly does it mean when you put static in front of a
struct _definition_ (not instance) ?
EG:
static struct S
{
static struct SS
{
}
}
As opposed to
struct S
{
struct SS
{
}
}