Proposal: Hide the int in opApply from the user
Sean Kelly
sean at f4.ca
Mon Jan 7 08:00:56 PST 2008
Jason House wrote:
> I think this proposal has one fatal flaw...
>
> There is no way for the opApply function to do something after iteration stops prematurely. Some data structures could change internal state as they iterate. Those state changes may require clean-up. I have no good examples at the moment, but know they exist.
scope(exit) would work, but it's not ideal.
Sean
More information about the Digitalmars-d
mailing list