Version 11.0.0.2719
When I type “Try” , Water for Mercury helpfully adds “Finally”, but does not also add “End Try”, which is needed or the code wont’ compile:
It would be great if it could add “End Try” also below “Finally”.
Thanks,
–Avonelle
Version 11.0.0.2719
When I type “Try” , Water for Mercury helpfully adds “Finally”, but does not also add “End Try”, which is needed or the code wont’ compile:
It would be great if it could add “End Try” also below “Finally”.
Thanks,
–Avonelle
Hmm. thats currently not something the smart-end system isn capable of without major restructuring, but I will have a look. it does end dd it when yo press Enter after thew Finally, right?
Logged as bugs://E25742.
No, it doesn’t seem to for me.
–Avonelle
Reproduced. THAT one io can fix right now.
Side Q: is it correct that Catch has to come BEFOR Finally? (in C# and Oxygene, any order is allowed; in Mercury currently its not, compiler side).
Fixed.
Yes, Catch has to come before Finally (I just double checked in VB.NET).
–Avonelle
Good, then we’re consistent (and i’ve made smart-end handle it the same way, after a Finally
, Catch
is not to seen as valid block terminator, and End Try
will be added; after Catch
, either End Try
or Finally
is seen as valid existing terminator terminator ;).
Cool, thanks!
–Avonelle
bugs://E25742 was closed as won’t fix.