www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - CTFE divide by 0 prints the same error 3 times !

reply Basile B. <b2.temp gmx.com> writes:
try this

echo "enum a = 0/0;" > d.d && dmd d.d -main

any reason for this ?
Oct 28 2016
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 10/28/2016 07:37 AM, Basile B. wrote:
 try this

 echo "enum a = 0/0;" > d.d && dmd d.d -main

 any reason for this ?
One is too easy to miss, two is better, but three is just right. :o) Must be an implementation oddity. Please file a bug. Ali
Oct 28 2016