If Statement with Declaration
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 3 15:32:17 PDT 2016
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote:
>
> So I was thinking of a way of extending if statements that have
> declarations. The following being as example of the current use
> of if statements with declarations:
>
> [...]
Just Introduce another block
{
int i = someFunc();
if (i >= 0) { ... }
}
// i is not visible here
More information about the Digitalmars-d
mailing list