Dscanner: intentionally unused variable

Ivan Trombley itrombley at dot-borg.org
Sun Jan 7 10:31:46 UTC 2018


On Sunday, 7 January 2018 at 03:41:18 UTC, SimonN wrote:
> Another way would be to have the RAII wrapper in a with 
> statement, but it produces extra indentation, which you might 
> not like:
>
>     with (MyStruct(100, 200)) {
>         // code that uses the new clip rectangle
>     }
>
> -- Simon

This works good enough. Thanks.


More information about the Digitalmars-d mailing list