Enumerators. They suck.
BlitzMax Forums/BlitzMax Programming/Enumerators. They suck.
| ||
Why can't we use EachIn on enumerators without giving the enumerator an ObjectEnumerator method, which is probably going to point to itself anyways? Why isn't there a TEnumerator type we can extend so that the compiler just knows when an enumerator is an enumerator? Using a base enumerator: |
| ||
I thought enumerators were rather cool... :-) |
| ||
Generic Enumerator |
| ||
haha, I was staring at this at work, thinking "I'm sure I've done this before," and it turns out I have! Nilium's code is inspired by mine. |
| ||
I was just venting. I have no desire to use a reflection-based generic enumerator (probably slower, too); I'll be using my own base enumerator for now. |