scripts and results (was Helping to find the usefulness of a proposal)
Bruce Chapman
brucechapman at paradise.net.nz
Tue Apr 7 01:22:27 PDT 2009
Ruslan,
Thanks for doing that.
Bruce
P.S. One answer below
Ruslan Shevchenko wrote:
> Good day,
>
> Few days ago Stephan give idea about writing simple script, which
> count amount of possible-optimizations of existing code.
>
>
- SNIP -
> <BTW>
> Exists one proposal, which I can't find on Joe blog: is change of variable
> subtype inside 'if instance' statement
> I. e. patterns look:
> if (x instanceof something)
> {
> something sx = (something)x;
> }
> And proposal tell type 'x' as 'something' inside dominate if block.
> Are anybody remember such proposal or it's was my fantasy ?
> </BTW>
>
>
>
This is part of the functionality of the switch instanceof proposal, the
desugaring probably has something that looks like that in it, and I
mentioned it in one of my comments regarding that proposal.
Bruce
More information about the coin-dev
mailing list