[Issue 9065] Please consider adding these std.traits
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 26 23:46:49 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9065
--- Comment #23 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-26 23:46:48 PST ---
(In reply to comment #21)
> (In reply to comment #20)
> > I challenged implementing proposed template isVariable. Is this what you want?
> >
> > https://gist.github.com/4152297
>
> It looks good, although I can't test it now.
> Does isVariable deal with properties (which I would say are NOT variables). And
> how about an isProperty? That's really hard to detect...
Added isPropertyFunction (isProperty is a bit ambiguous name to me).
I think it's a trait derived from isFunction.
> I'm not sold on the term isManifestConstant, I'm sure no non-compiler developer
> would have ever heard that term before. I've never seen it in any docs before,
> and they're declared with 'enum', that's what most people will call it.
http://dlang.org/features2.html
> Extended enums to allow declaration of manifest constants.
http://dlang.org/enum.html
> Manifest Constants
> If there is only one member of an anonymous enum, the { } can be omitted:
> [snip]
> Such declarations are not lvalues, meaning their address cannot be taken.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list