Small Buffer Optimization for string and friends
Timon Gehr
timon.gehr at gmx.ch
Mon Apr 9 02:18:31 PDT 2012
On 04/09/2012 10:24 AM, Don wrote:
> On 08.04.2012 07:56, Andrei Alexandrescu wrote:
>
>> For this to happen, we need to start an effort of migrating built-in
>> arrays into runtime, essentially making them templates that the compiler
>> lowers to. So I have two questions:
>
> vote -= real.infinity.
>
> That would kill D.
>
Why does this even compile?
void main(){
long vote;
vote -= real.infinity;
assert(vote == long.min);
}
More information about the Digitalmars-d
mailing list