http://d.puremagic.com/issues/show_bug.cgi?id=8369
SomeDude <lovelydear@mailmetrash.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lovelydear@mailmetrash.com
--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-12-31 13:59:45 PST ---
http://dpaste.dzfl.pl/f48bd90a
This one gave me some surprising results on DPaste. The results are
inconsistent from run to run.
A few times, I got
Application output:
a/b = nan
Application error:
core.exception.RangeError@/home/c891/c322.d(6): Range violation
But most of the times, I get a "successful" run without any output.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

http://d.puremagic.com/issues/show_bug.cgi?id=8369
Maxim Fomin <maxim@maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim@maxim-fomin.ru
--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-01 10:47:17 PST ---
First of all, it does not segfault on 2.061.
(In reply to comment #1)
> http://dpaste.dzfl.pl/f48bd90a
>
> This one gave me some surprising results on DPaste. The results are
> inconsistent from run to run.
>
> A few times, I got
>
> Application output:
> a/b = nan
> Application error:
> core.exception.RangeError@/home/c891/c322.d(6): Range violation
>
> But most of the times, I get a "successful" run without any output.
Are you sure you receive no output?
It seems for me the code works as expected. If you provide no args, you will
have array bounds exception (what actually happens). Additionally a is
defaulted to nan, so the program will also print nan in this case.
If you provide some float as a program argument, you will receive inf, -inf or
nan depending on the argument.
So, I don't see any problem here. I checked 2.061 on win64. If on other
platform it does not work properly, please provide source and specify platform.
Otherwise this issue can be closed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------