How to distinguish a delegate from a function?
Max Samukha
samukha at voliacable.com.removethis
Sun Jul 13 23:12:10 PDT 2008
On Sun, 13 Jul 2008 11:31:30 +0000 (UTC), Moritz Warning
<moritzwarning at web.de> wrote:
>
>Yes, I noticed that is(typeof(&Foo.bar) == delegate) is true even it is
>not an delegate.
>It's confusing, maybe it's a bug?
The spec says nothing about exact semantics of type specializations of
that kind, so it may be a feature.
More information about the Digitalmars-d
mailing list