Martin Kinkelin

Results 443 comments of Martin Kinkelin

A further reason *not* to include another C lib in Phobos is that distro package maintainers don't like that duplication; they have their own zlib and libxxhash packages. E.g., the...

I don't think it does. Try ```D alias foo = memoize!(n => new Object()); assert(foo(0) is foo(0U)); ```

You open the door for a single `memoize!Func` instantiation to (IMO quite probably unintentionally) break down into a multitude of actually memoized functions, depending on the used args, just for...

Yes, it currently (master) doesn't support any templates and always binds to *one* function (thus the 'confusion' for overloads), and the short-hand lambda syntax is one such case, but not...

> I do see that, but I think the issue is much smaller than you make it out to be. You're probably right. I suppose the memoized wrapper now (this...

Yeah, looks like there's a corresponding DMD backend issue for 32-bit COFF too. :(

Blocked by https://issues.dlang.org/show_bug.cgi?id=16098.

In general, it seems the only reason for that function is that DMD includes the padding bytes for `real is real`. LDC handles this (only comparing the 10 payload bytes...

If you look at the asm, LDC and GDC definitely don't - they use memcmp.