Matt Campbell wrote:
> I'm more concerned about open files, COM objects (I know there is no COM
> library for Neko yet), and the like.
In this case, I would try to mimic a try...finally construct. I'm
certainly a novice here, however Neko supports try...catch with rethrow
so an ugly version of try...finally:
//open file
try
{
//...
}
catch e
{
//close file
$rethrow(e);
}
//close file
I wonder if this will work:
//open file
try
{
//...
$goto(closefile);
}
catch e
{
closefile:
//close the file;
$rethrow(e);
}
-Brian
--
Neko : One VM to run them all
(http://nekovm.org)