[antlr-interest] "finally" blocks
Terence Parr
parrt at cs.usfca.edu
Mon Jan 17 13:57:51 PST 2005
On Jan 17, 2005, at 1:48 PM, Paul J. Lucas wrote:
>>> In using ANTLR with Java, it would be nice to be able to
>>> specify "finally" blocks, e.g.:
>
>> Good idea Paul. Is there a decent equiv in all potential targets?
>
> I don't know about all targets, but C++ doesn't need "finally"
> because C++ has destructors. The only reason Java needs
> "finally" is because it doesn't have destructors.
Yeah, I wonder about C target. I'd hate to have something that could
only be done in a few targets.
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
More information about the antlr-interest
mailing list