The amazing template which does nothing
Chris via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 28 02:23:52 PDT 2015
On Tuesday, 28 April 2015 at 02:36:38 UTC, Vladimir Panteleev
wrote:
> http://blog.thecybershadow.net/2015/04/28/the-amazing-template-which-does-nothing/
Thanks for this little piece of information! Great stuff. You
wrote
"When building an UFCS chain (in the style of component
programming), you will often run into situations where a certain
operation is not UFCS-able. There are multiple obvious ways to
prepend the string, but neither are very satisfactory"
And this has happened to me many times. The solution "Break the
UFCS chain and use a local temporary variable" makes me angry,
because by having to do so all the beauty of chaining is lost.
More information about the Digitalmars-d
mailing list