spurious conversion to int

2020-11-18 Thread Richard Delorme via Digitalmars-d-learn
The following code // module foo; static immutable ubyte [2] t = [2, 3]; ubyte g(const ubyte a) { return cast (ubyte) (a + 1); } void f(const ubyte a, const ubyte b, const int i) { ubyte [2] c = a > b ? [a.g(), b.g()] : [b, a]; // compile

Re: D on AArch64 CPU

2017-05-14 Thread Richard Delorme via Digitalmars-d-learn
On Sunday, 14 May 2017 at 15:05:08 UTC, Richard Delorme wrote: I did not touch at std.conv nor std.stdio. On LDC, the only modification concerned math.d and gammafuntion.d, missing support for 128-bit floating points. On GDC, I had to complete the errno.d file (under linux the errors are

D on AArch64 CPU

2017-05-14 Thread Richard Delorme via Digitalmars-d-learn
I recently bought the infamous Raspberry pi 3, which has got a cortex-a53 4 cores 1.2 Ghz CPU (Broadcom). After installing on it a 64 bit OS (a non official fedora 25), I was wondering if it was possible to install a D compiler on it. I first try LDC 0.17.4 After modifying some phobos/runtime

Re: Newbie to D, first impressions and feedback on the 5 (and more) first minutes.

2016-05-25 Thread Richard Delorme via Digitalmars-d-learn
On Wednesday, 25 May 2016 at 09:41:10 UTC, Russel Winder wrote: D is a problem on Fedora: dmd, gdc, and dub are not packaged. ldc is so there is that – many would argue that having ldc is much more important than dmd or gdc. The main problem is that ldc, dmd and gdc cannot share the same