Documentation of D arrays

Sebastian Biallas groups.5.sepp at spamgourmet.com
Thu Jan 11 18:19:56 PST 2007


Frits van Bommel wrote:
> Sebastian Biallas wrote:
>> BtW: What exacly happens on:
>>
>> a = b ~ c and a ~= b
>>
>> ? Is this some build-in opCat? What are the semantics?
> 
> You can see it as a built-in opCat if you like.
> What happens behind the scenes is that a function in the runtime is called.
> The source to these functions is in dmd/src/phobos/internal/gc/gc.d if
> you really want to know exactly what they do... (_d_arraycat for ~,
> _d_arrayappend for ~= with array, _d_arrayappendc for ~= with single
> element)

Well, I found out by inspecting the disassembly, but I prefer to have
spec on which I can rely on.



More information about the Digitalmars-d mailing list