June 24, 2010
Jonathan M Davis wrote:

> div0 wrote:
> 
>>>
> [... snip of UTF-8 stuff ...]
>>
> 
> The UTF char stuff is all painfully complicated, and I _think_ that I more or less understand it, but I suspect that I don't understand it all that well. It would be nice if the there were a page in the docs somewhere that really explained it well.
> 

TPDL has a great section on Unicode and strings. I definitely think that I understand the situation better now. Unicode is a pain to deal with, but D deals with it really well over all. I'm certainly more comfortable dealing with unicode in D than in most languages.

- Jonathan M Davis
June 24, 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
1 2
Next ›   Last »