[Mono-list] initialize local variables

Dietmar Maurer dietmar@ximian.com
19 Jun 2002 09:42:19 +0200


On Wed, 2002-06-19 at 06:33, Zaphod wrote:
> On Tue, Jun 18, 2002 at 09:09:41PM +0200, Santiago Faci wrote:
> 
> > is it possible to initialize locals variables os a method in IL assemble
> > with " .locals init (....) " sentence?
> 
> Does mono have an assembler ?... (which you're using ?)

mono does not have an assembler.

> 
> AFAIK you cannot do that...
> 
> .locals (int)
> 	ldc.i4.0
> 	stloc.0
> 

.locals init (int) will also do the job.

- Dietmar