[cfe-dev] vector constructors
Chris Lattner
clattner at apple.com
Tue Mar 16 14:51:15 PDT 2010
On Mar 16, 2010, at 2:39 PM, Jochen Wilhelmy wrote:
>
>>> Cg, glsl and hlsl support it.
>>>
>>
>> We do not aim to implement those languages in clang.
>>
>>
> I do not expect this, but will a patch for only the function style constructors
> be accepted into mainline?
> I think it's a natural extension of c++ syntax to vectors.
In my opinion, there is no reason to do this. If you want C++ syntax to do this, define your_float4 as a struct with a constructor. There is already too much needless diversity in vector initialization, and C++'0x may add a whole new world of pain here.
-Chris
More information about the cfe-dev
mailing list