www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Painting literals in CTFE

On 20 August 2013 13:03, Iain Buclaw <ibuclaw ubuntu.com> wrote:
 Hi,

 Question aimed vaguely at Don.

 The routine paintFloatInt in ctfeexpr.c is not portable across
 compilers (gdc implements its own way of painting float<->int,
 double<->long through something other than using a union).   Would it
 be possible to split this off somewhere, such as port.c/target.c -
 depending on how much of the front-end we need access to in order to
 carry out the operation?

Ping on this. -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
Aug 27 2013