Compiler hints, inlining and syntax consistency

Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com> Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Sat Dec 28 12:09:42 PST 2013


On Saturday, 28 December 2013 at 18:55:31 UTC, Chris Cain wrote:
> Same usage, 
> `someGenericAlgorithm(assumeWalkLengthOK(myContainer));` (I 
> didn't actually run this through dmd, but it should work in 
> theory)

Not too bad. Being able to create adaptors like this is a nice 
workaround for overruling library design decisions, at least if 
it is simple enough for the compiler backend is able to "undo" 
any overhead.


More information about the Digitalmars-d mailing list