write once type?

sighoya sighoya at gmail.com
Thu Apr 29 21:31:07 UTC 2021


On Tuesday, 20 April 2021 at 19:56:33 UTC, Steven Schveighoffer 
wrote:
> Not only that, but I may also want to keep processing the loop 
> and do something different if the value has already been set 
> instead of returning immediately, which necessitates a second 
> loop.

Can I ask why you require to handle it in one loop?
As I see it, you are required to poll over isSet/isNotSet in 
every iteration.



More information about the Digitalmars-d-learn mailing list