[Webkit-unassigned] [Bug 32828] WTF should have an arraysize macro
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 24 08:53:36 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=32828
--- Comment #23 from David Kilzer (ddkilzer) <ddkilzer at webkit.org> 2010-10-24 08:53:35 PST ---
(In reply to comment #22)
> (In reply to comment #21)
> > I tend to prefer type-safe code over macros as long as there aren't any bad side-effects to using it. :)
> Because the macro uses a template function it's typesafe too. It throws a compiler error when used with wrong type (e.g. char*).
> IMHO ARRAY_LEGTH(tokens) is easier to read compared to array_info<tokens>::size.
I agree. Thanks!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list