December 27, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On 12/27/2015 07:53 AM, TheDGuy wrote:
> Any idea what i am doing wrong?
> https://www.youtube.com/watch?v=j_VCa-5VeP8
YouTube says that the video has been removed by the user. That's exactly the reason why I don't like even dpaste. There is no guarantee that such threads will be useful forever. :) For me, sample code should be right here, and it should be short enough to practically be here.
Ali
|
December 27, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Sunday, 27 December 2015 at 22:51:27 UTC, Ali Çehreli wrote:
> On 12/27/2015 07:53 AM, TheDGuy wrote:
>> Any idea what i am doing wrong?
>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>
> YouTube says that the video has been removed by the user. That's exactly the reason why I don't like even dpaste. There is no guarantee that such threads will be useful forever. :) For me, sample code should be right here, and it should be short enough to practically be here.
>
> Ali
I deleted the video because the problem was solved, it was neither a problem with the single '&' nor with my code it just showed a strange behaviour while debugging but the function returned the right value. Sample code is in my second post.
|
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote:
> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>> Any idea what i am doing wrong?
>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>
> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code...
I work more or less lying on a futon. Desks are so cheesy...
|
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote:
> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote:
>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>>> Any idea what i am doing wrong?
>>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>>
>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code...
>
> I work more or less lying on a futon. Desks are so cheesy...
Anarchism is comfy...
|
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On Sunday, 27 December 2015 at 23:24:55 UTC, TheDGuy wrote:
> On Sunday, 27 December 2015 at 22:51:27 UTC, Ali Çehreli wrote:
>> On 12/27/2015 07:53 AM, TheDGuy wrote:
>>> Any idea what i am doing wrong?
>>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>>
>> YouTube says that the video has been removed by the user. That's exactly the reason why I don't like even dpaste. There is no guarantee that such threads will be useful forever. :) For me, sample code should be right here, and it should be short enough to practically be here.
>>
>> Ali
>
> I deleted the video because the problem was solved, it was neither a problem with the single '&' nor with my code it just showed a strange behaviour while debugging but the function returned the right value. Sample code is in my second post.
Get used to it :) Unfortunately, DMD is not emitting the best debug information. The program flow is correct, but the line info is not, that's why the execution step will not be triggered in the real location of the source code.
The simplest example is this:
import std.stdio;
void foo(int x)
{
if (x > 0) //step 1, correct
{
writeln("bigger"); //step 2, correct
}
else
{
writeln("lower"); //step 3, wrong
}
}
int main(string[] argv)
{
foo(20); //breakpoint with step in
return 0;
}
If you really want to confuse the debugger, write some asserts or contracts here and there and your program will be impossible to debug :)
|
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: > On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>> Any idea what i am doing wrong? >>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>> >>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >> >> I work more or less lying on a futon. Desks are so cheesy... > > Anarchism is comfy... when I'm tired with the conformism I just let my head go on the pillow and I sleep... (snoring) Even if I dont't think that you have won: https://youtu.be/Uj_7kTwRMKE?t=2m35s |
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: > On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: >> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>>> Any idea what i am doing wrong? >>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>>> >>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >>> >>> I work more or less lying on a futon. Desks are so cheesy... >> >> Anarchism is comfy... > > when I'm tired with the conformism I just let my head go on the pillow and I sleep... > (snoring) > > Even if I dont't think that you have won: > https://youtu.be/Uj_7kTwRMKE?t=2m35s https://www.youtube.com/watch?v=g7qx5oYdOEA tous fashos: juif, chrétien, musulmans,... Il n'y a bien que les communistes qui ont compris que les religions c'est de la merde. |
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote:
> On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote:
>> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote:
>>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote:
>>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote:
>>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>>>>>> Any idea what i am doing wrong?
>>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>>>>>
>>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code...
>>>>
>>>> I work more or less lying on a futon. Desks are so cheesy...
>>>
>>> Anarchism is comfy...
>>
>> when I'm tired with the conformism I just let my head go on the pillow and I sleep...
>> (snoring)
>>
>> Even if I dont't think that you have won:
>> https://youtu.be/Uj_7kTwRMKE?t=2m35s
>
> https://www.youtube.com/watch?v=g7qx5oYdOEA
>
> tous fashos: juif, chrétien, musulmans,...
>
> Il n'y a bien que les communistes qui ont compris que les religions c'est de la merde.
Also, european people should ask themselves why they stick on the US culture since 60 years, while actually Russians freed Berlin.
|
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 18:33:16 UTC, jkpl wrote: > On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote: >> On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: >>> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: >>>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >>>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>>>>> Any idea what i am doing wrong? >>>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>>>>> >>>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >>>>> >>>>> I work more or less lying on a futon. Desks are so cheesy... >>>> >>>> Anarchism is comfy... >>> >>> when I'm tired with the conformism I just let my head go on the pillow and I sleep... >>> (snoring) >>> >>> Even if I dont't think that you have won: >>> https://youtu.be/Uj_7kTwRMKE?t=2m35s >> >> https://www.youtube.com/watch?v=g7qx5oYdOEA >> >> tous fashos: juif, chrétien, musulmans,... >> >> Il n'y a bien que les communistes qui ont compris que les religions c'est de la merde. > > Also, european people should ask themselves why they stick on the US culture since 60 years, while actually Russians freed Berlin. One last thing. Tough guy ? https://www.youtube.com/watch?v=1igvrZ0KosA |
December 28, 2015 Re: Variable below zero but if statement doesn't grab? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jkpl | On Monday, 28 December 2015 at 19:22:00 UTC, jkpl wrote: > On Monday, 28 December 2015 at 18:33:16 UTC, jkpl wrote: >> On Monday, 28 December 2015 at 18:12:24 UTC, jkpl wrote: >>> On Monday, 28 December 2015 at 18:02:53 UTC, jkpl wrote: >>>> On Monday, 28 December 2015 at 15:50:06 UTC, Basile B. wrote: >>>>> On Monday, 28 December 2015 at 15:07:08 UTC, jkpl wrote: >>>>>> On Sunday, 27 December 2015 at 16:00:34 UTC, jkpl wrote: >>>>>>> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote: >>>>>>>> Any idea what i am doing wrong? >>>>>>>> https://www.youtube.com/watch?v=j_VCa-5VeP8 >>>>>>> >>>>>>> You could post the code also, personnaly I'm always almost at 2 meters from my screen, with zoom, so I can't read the code... >>>>>> >>>>>> I work more or less lying on a futon. Desks are so cheesy... >>>>> >>>>> Anarchism is comfy... >>>> >>>> when I'm tired with the conformism I just let my head go on the pillow and I sleep... >>>> (snoring) >>>> >>>> Even if I dont't think that you have won: >>>> https://youtu.be/Uj_7kTwRMKE?t=2m35s >>> >>> https://www.youtube.com/watch?v=g7qx5oYdOEA >>> >>> tous fashos: juif, chrétien, musulmans,... >>> >>> Il n'y a bien que les communistes qui ont compris que les religions c'est de la merde. >> >> Also, european people should ask themselves why they stick on the US culture since 60 years, while actually Russians freed Berlin. > > One last thing. Tough guy ? > > https://www.youtube.com/watch?v=1igvrZ0KosA I always try to find a link to the scene, in south america: "And finally I've done what I always done...". I never find it. It's probably because judgment defaits us: https://www.youtube.com/watch?v=xNRBajLM8_4 We want to show something, but we're always near, no so far, not close to our idea. It exists but we cant find a reference to the perfect representation of the idea... |
Copyright © 1999-2021 by the D Language Foundation