Best way to make Until! into string
    div0 
    div0 at users.sourceforge.net
       
    Thu Jun 24 10:50:04 PDT 2010
    
    
  
On 23/06/2010 23:14, bearophile wrote:
> div0:
>> and now with 2.047 I've been
>> bitten by the removal of struct initialisers.
>
> What do you mean?
>
> Bye,
> bearophile
curly brace initialisers:
struct c4 {
	float[4]	_vals;
}
c4 dat = { [0,0,0,0] };
Needs to be changed to use a constructor, but CTFE can't assign to the 
_vals array at the moment in the constructor. It'll get fixed sooner or 
later, so I'd rather wait than recode every thing to work around it; 
only to change it all back when CTFE gets better.
And also not using an array makes generalising the number of _vals a 
huge pain.
-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
    
    
More information about the Digitalmars-d-learn
mailing list