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.

Reply via email to