dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]ILNode_Using and stuff


From: Rhys Weatherley
Subject: Re: [DotGNU]ILNode_Using and stuff
Date: Tue, 15 Oct 2002 16:19:12 +1000

Gopal V wrote:
> 
> Hi All,
>         I'm stuck at ILNode_Using ... How the heck do I
> get the variables out of the ILNode_List left behind from
> ResourceAcquisition ?

You may need to rearrange the grammar to pass back the variables
in a separate list.

> And why does ILNode_Using have a GenDiscard ? .. Should I
> generate
> 
> try
> {
>         stmt;
> }
> finally
> {
>         dispose;
> }
> 
> from
> 
> using(Bob b=new Bob())
> {
>         stmt;
> }

That's what you need to do.  It has a GenDiscard mainly because
is can be special-cased.  The ForeachCollection node is similar,
so grep that for the pattern to use.

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]