start on SIMD documentation (v4)

sclytrack sclytrack at fake.com
Sat Jan 14 00:48:43 PST 2012


On 01/14/2012 12:00 AM, Walter Bright wrote:
> On 1/13/2012 2:36 PM, Andrei Alexandrescu wrote:
>> All names should have a __ prepended, and then the library defines
>> names for
>> them such as vec!(int, 4) that obey module lookup and all. Dumping a
>> wheelbarrow
>> of confusable new keywords doesn't sound right at all.
>
> They're not keywords, they are (literally) simple aliases:
>
> alias Vector!(int[4]) int4;



v4int



>
> As aliases, they obey all scoping and disambiguation rules, which I
> think is superior to using __ prefixes.
>
> You could use Vector!(int[4]) everywhere instead, but I submit it's a
> bit klunky to do that and might as well provide a set of aliases (or
> else people will produce their own aliases and they'll all have
> different spellings).



More information about the Digitalmars-d mailing list