dotgnu-pnet
[Top][All Lists]
Advanced

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

Re: [Pnet-developers] Array access in the java compiler ?


From: Gopal V
Subject: Re: [Pnet-developers] Array access in the java compiler ?
Date: Fri, 28 Mar 2003 12:33:10 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Rhys Weatherley wrote:
>     Array CreateJavaMultiArray(Type type, params int[] dims);

Ok, that proved to be a much better idea ... and it worked.

> You should be able to avoid "JavaArrayAccess".  The existing array access 
> code  will evaluate "a[0]" with ILNode_GenValue, and then call 
> ILNode_Prepare for the next dimension.  It should just happen automatically.

I got that right ... I had to make ArrayAccess '[' Expression ']' as
MakeBinary(ArrayAccess,$1,$3); and that worked .

Gopal
-- 
The difference between insanity and genius is measured by success


reply via email to

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