Extracting user defined attributes on function parameters

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Apr 15 00:19:37 UTC 2020


On Wed, Apr 15, 2020 at 12:01:51AM +0000, Adam D. Ruppe via Digitalmars-d-learn wrote:
[...]
> is() is a bit weird, but I described it in my "D Cookbook" to some
> success... and writing that description helped me make sense of it.
> The docs list like seven forms of it, but they are mostly just one big
> thing with a lot of optional pieces you can leave out, coupled with a
> little bit of magic when you use certain keywords, like __parameters.

is(T params == __parameters) is one of the most evil arcane black magic
corners of D, as I wrote here:

	https://forum.dlang.org/post/mailman.1197.1379014886.1719.digitalmars-d-learn@puremagic.com

It feels like it was shoehorned into is() because that was the most
convenient place at the time, but it's really a strange arcane beast
that has its own quirky behaviours that are different from anything else
I've seen in D.


T

-- 
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the world. --
Anonymous


More information about the Digitalmars-d-learn mailing list