May 15, 2009 Re: Fun with allMembers | ||||
|---|---|---|---|---|
| ||||
Shin Fujishiro:
>For example, using allMembers with enums, I could implement enumToString and enumFromString without defineEnum. Code: http://codepad.org/HVvPjoI7 <
Nice. With better unit testing, and docs this seems good to go into Phobos.
Bye,
bearophile
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply