For the lulz: ddmd vs libdparse lexer timings

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 7 05:22:49 PST 2015


On Wednesday, 7 January 2015 at 13:02:20 UTC, Daniel Murphy wrote:
> "Iain Buclaw via Digitalmars-d"  wrote in message 
> news:mailman.4250.1420635158.9932.digitalmars-d at puremagic.com...
>
>> No, that assert should never fail.
>
> And yet for some reason it does.

Every type has at least a size of one byte. So a and b occupy 
different stack slots due to padding. The default op== does a 
memcmp and compares the padding as well.

My guess.


More information about the Digitalmars-d mailing list