On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
I was doing toHexString(myByteArray) instead of simply doing myByteArray.toHexString(). (That was on an md5 example, by the way.) Intellisense would have helped me realize this.

Both these forms are the same. It's called UFCS (uniform function call syntax). Here's some material to help you understand what's going on here:

http://ddili.org/ders/d.en/ufcs.html
http://nomad.so/2013/08/alternative-function-syntax-in-d/

Auto-complete in D is tricky because of this feature and no-one has invested any time to figure out a nice way to provide auto-complete for this.

There is DCD by Brian Schott that looks very impressive but UFCS suggestions are not implemented yet.

http://forum.dlang.org/post/[email protected]

Reply via email to