for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 fields
On Thursday, 23 November 2017 at 00:58:21 UTC, Marc wrote:
for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 fields
https://dlang.org/spec/traits.html#allMembers
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOf
On Thursday, 23 November 2017 at 01:01:42 UTC, Michael V.
Franklin wrote:
On Thursday, 23 November 2017 at 00:58:21 UTC, Marc wrote:
for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 fields
https://dlang.org/spec/traits.html#allMembe
On Thursday, November 23, 2017 00:58:21 Marc via Digitalmars-d-learn wrote:
> for example:
>
> enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
>
> enum int countOfA = coutOfFields(A); // 5 fields
import std.traits;
enum countOfA = EnumMembers!A.length;
- Jonathna M Davis
On Thursday, 23 November 2017 at 01:04:29 UTC, Jonathan M Davis
wrote:
On Thursday, November 23, 2017 00:58:21 Marc via
Digitalmars-d-learn wrote:
for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 fields
import std.traits;
enum coun
On 11/22/2017 05:21 PM, Marc wrote:
On Thursday, 23 November 2017 at 01:04:29 UTC, Jonathan M Davis wrote:
On Thursday, November 23, 2017 00:58:21 Marc via Digitalmars-d-learn
wrote:
for example:
enum A { a = -10, b = -11, c = -12, d = -13, e = -34}
enum int countOfA = coutOfFields(A); // 5 f
On Thursday, 23 November 2017 at 01:34:54 UTC, Ali Çehreli wrote:
On 11/22/2017 05:21 PM, Marc wrote:
On Thursday, 23 November 2017 at 01:04:29 UTC, Jonathan M
Davis wrote:
On Thursday, November 23, 2017 00:58:21 Marc via
Digitalmars-d-learn wrote:
[...]
import std.traits;
enum countOfA = E