On 01/30/2018 07:33 PM, Rubn wrote:
Is there any way to initialize an array of unions with more than just
the first union type?
struct A { float a; }
struct B { uint b; }
union Test
{
A a;
B b;
}
Test[2] test =
[
Test(A(1.0f)),
Test(B(10)), // ERROR
];
AFAIK there's n
Is there any way to initialize an array of unions with more than
just the first union type?
struct A { float a; }
struct B { uint b; }
union Test
{
A a;
B b;
}
Test[2] test =
[
Test(A(1.0f)),
Test(B(10)), // ERROR
];
AFAIK there's no way to specify to use D with an initial
On Monday, 1 September 2014 at 15:44:50 UTC, Dicebot wrote:
On Sunday, 31 August 2014 at 03:06:48 UTC, Dicebot wrote:
My guess is that it hasn't been ported to the D1 compiler
yet. Dicebot or any other people who work for Sociomantic
should be most helpful. At this point, I recommend that you
On Sunday, 31 August 2014 at 03:06:48 UTC, Dicebot wrote:
My guess is that it hasn't been ported to the D1 compiler yet.
Dicebot or any other people who work for Sociomantic should be
most helpful. At this point, I recommend that you ask on the
main D forum.
Ali
I have not encountered such
On 2014-08-31 04:53, Ali Çehreli wrote:
On 08/30/2014 06:05 PM, jicman wrote:
> Really is or how one can fix it? This is the only time that I have
> found myself without answers with D. Strange. Maybe folks are not that
> into D1, but D1 was before D2. Any thoughts would be greatly
> app
On Sunday, 31 August 2014 at 02:53:35 UTC, Ali Çehreli wrote:
On 08/30/2014 06:05 PM, jicman wrote:
> Really is or how one can fix it? This is the only time that
I have
> found myself without answers with D. Strange. Maybe folks
are not that
> into D1, but D1 was before D2. Any thoughts woul
On 08/30/2014 06:05 PM, jicman wrote:
> Really is or how one can fix it? This is the only time that I have
> found myself without answers with D. Strange. Maybe folks are not that
> into D1, but D1 was before D2. Any thoughts would be greatly
> appreciated. Even from Walter. :-) Thanks.
I
what's going on.
So, I guess no one in this forum knows what the D1 error,
D1: Error: duplicate union initialization for size
Really is or how one can fix it? This is the only time that I
have found myself without answers with D. Strange. Maybe folks
are not that into D1, but D1 was b
On 27/08/14 23:48, jicman wrote:
On Wednesday, 27 August 2014 at 06:20:24 UTC, Jacob Carlborg
wrote:
On 23/08/14 19:50, jicman wrote:
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
Does the following make any difference?
con
initialization for size
c:\D\import\dfl\control.d(7954): Error: duplicate union
initialization for size
c:\D\import\dfl\control.d(7954): Error: duplicate union
initialization for size
c:\D\import\dfl\control.d(7954): Error: duplicate union
initialization for size
Line 7635:
const Size DEFAULT_SCALE = Size
On 27/08/14 04:38, jicman wrote:
I wish I knew. :-( Above, in this same post I pasted all lines that had
Size and right below it all lines that had size. These are all the
places where Size is found. If you can tell me which one you think it
is, I can grab that piece of the code.
I found it
On 23/08/14 19:50, jicman wrote:
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
Does the following make any difference?
const Size DEFAULT_SCAL = Size(5, 13)
--
/Jacob Carlborg
On Tuesday, 26 August 2014 at 06:36:59 UTC, Jacob Carlborg wrote:
On 26/08/14 00:57, jicman wrote:
Ok, let's try something simpler... Where can I find the D1
v1.076
compiler error meaning of,
Error: duplicate union initialization for size
for this line,
const Size DEFAULT_SCALE
On 08/25/2014 11:36 PM, Jacob Carlborg wrote:
On 26/08/14 00:57, jicman wrote:
Ok, let's try something simpler... Where can I find the D1 v1.076
compiler error meaning of,
Error: duplicate union initialization for size
for this line,
const Size DEFAULT_SCALE = { 5, 13 };
How doe
On 26/08/14 00:57, jicman wrote:
Ok, let's try something simpler... Where can I find the D1 v1.076
compiler error meaning of,
Error: duplicate union initialization for size
for this line,
const Size DEFAULT_SCALE = { 5, 13 };
How does the code for Size look like?
--
/Jacob Carlborg
Ok, let's try something simpler... Where can I find the D1
v1.076 compiler error meaning of,
Error: duplicate union initialization for size
for this line,
const Size DEFAULT_SCALE = { 5, 13 };
thanks.
On Sunday, 24 August 2014 at 21:54:57 UTC, jicman wrote:
On Sunday, 24 August 2014 at 10:52:38 UTC, bearophile wrote:
jicman:
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
Can you show the (reduced) definition of Size and
D
On Sunday, 24 August 2014 at 10:52:38 UTC, bearophile wrote:
jicman:
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
Can you show the (reduced) definition of Size and
DEFAULT_SCALE? Even better to show a minimized self-contain
jicman:
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
Can you show the (reduced) definition of Size and DEFAULT_SCALE?
Even better to show a minimized self-contained program that has
the problem.
Bye,
bearophile
Mybe, some fields in Size overlap. If you look at it, you may
understand, what happens.
compiling the code:
c:\D\dmd1.76\dmd\import\dfl\control.d(7634): Error: duplicate
union initialization for size
This is line 7634:
const Size DEFAULT_SCALE = { 5, 13 };
What does the error say and how can I fix it? Thanks.
josé
21 matches
Mail list logo