August 27, 2014
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, I think. It's declared in "drawing.d". Well, at least I found one declared there. But that's not a union, it's a struct. I don't understand why it complains about a struct.

-- 
/Jacob Carlborg
August 27, 2014
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?
>
> const Size DEFAULT_SCAL = Size(5, 13)

I changed it from this,

const Size DEFAULT_SCALE = { 5, 13 };

to this,

const Size DEFAULT_SCALE = Size(5,13);

and now I am getting 4 errors: :-)

build -I..;c:\D\import -version=gui -version=Phobos -g
OpenProjs.res  OpenProjs.d
c:\D\import\dfl\control.d(7635): 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
c:\D\import\dfl\control.d(7954): Error: duplicate union
initialization for size

Line 7635:
const Size DEFAULT_SCALE = Size(5,13);

Line 7954:
Size autossz = DEFAULT_SCALE;

But, look at line 7955:

Size scrollsz = { 0, 0 };

And there is no error for that line.  Changing the 5 and 13 for
0, 0, has now taken that error out, but what does that mean?
What if I needed that 5 and 13 there?

August 28, 2014
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?
>>
>> const Size DEFAULT_SCAL = Size(5, 13)
>
> I changed it from this,
>
> const Size DEFAULT_SCALE = { 5, 13 };
>
> to this,
>
> const Size DEFAULT_SCALE = Size(5,13);
>
> and now I am getting 4 errors: :-)

Of course you do :) I have honestly no idea what's going on.

-- 
/Jacob Carlborg
August 31, 2014
On Thursday, 28 August 2014 at 06:17:13 UTC, Jacob Carlborg wrote:
> 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?
>>>
>>> const Size DEFAULT_SCAL = Size(5, 13)
>>
>> I changed it from this,
>>
>> const Size DEFAULT_SCALE = { 5, 13 };
>>
>> to this,
>>
>> const Size DEFAULT_SCALE = Size(5,13);
>>
>> and now I am getting 4 errors: :-)
>
> Of course you do :) I have honestly no idea 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 before D2.  Any thoughts would be greatly appreciated.  Even from Walter. :-)  Thanks.

josé

August 31, 2014
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 still think this is the same bug that I have linked before:

  https://issues.dlang.org/show_bug.cgi?id=8902

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

August 31, 2014
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 would be greatly
> > appreciated.  Even from Walter. :-)  Thanks.
>
> I still think this is the same bug that I have linked before:
>
>   https://issues.dlang.org/show_bug.cgi?id=8902
>
> 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 issue in our D1 codebase but I will forward this question to our internal chat on Monday
August 31, 2014
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
>  > appreciated.  Even from Walter. :-)  Thanks.
>
> I still think this is the same bug that I have linked before:
>
>    https://issues.dlang.org/show_bug.cgi?id=8902
>
> 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.

That might be the case but this code doesn't involve a union. "Size" is a struct.

The fix for the issue above requires minimal changes [1]. Perhaps it's worth a try to port to D1.

[1] https://github.com/D-Programming-Language/dmd/commit/840d88a6e539e9817cffdc4abe8ad6357897d54a

-- 
/Jacob Carlborg
September 01, 2014
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 issue in our D1 codebase but I will forward this question to our internal chat on Monday

Have asked, no immediate recognition, sorry.
September 03, 2014
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 ask on the main D forum.
>>>
>>> Ali
>>
>> I have not encountered such issue in our D1 codebase but I will forward this question to our internal chat on Monday
>
> Have asked, no immediate recognition, sorry.

What does the error mean?

1 2
Next ›   Last »