dotgnu-general
[Top][All Lists]
Advanced

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

Re: [DotGNU]UnManaged Pointers stuff (was: Weekend Warriors)


From: Jonathan P Springer
Subject: Re: [DotGNU]UnManaged Pointers stuff (was: Weekend Warriors)
Date: Tue, 15 Oct 2002 14:47:05 -0400
User-agent: Mutt/1.4i

On Tue, Oct 15, 2002 at 10:47:07PM +0530, Gopal V wrote:
> If memory serves me right, Jonathan P Springer wrote:

> Cannot run it in the engine , as the engine seems to complain about
> verfication , eventhough it has the UnverfiableCode Attribute set ..

Hmm.  Can some other WW take on the engine hacking responsibilities?
I'm tapped out with coercion and typing at the moment.
 
> > + static ILBuiltinType const ILUnmanagedPtr =
> > +     {ILType_Invalid,  /*  This is a reference, really  */
> > +    ILMachineType_UnmanagedPtr, 1};
> > + 
> 
> Is it really ILType_Invalid ? .. But it works :-)

I'm emulating the implementation of Decimal at the moment.  As I gain
understanding of cg_optables.c, I suspect I may revisit this.  See
below.
 
> But I need a test case for this ...

Me, too.  I think it will fall out when I tackle the mathematical
operators.
 
> ildasm of pnet/samples/mscorlib.dll used a conv.u before stfld of void * ,
> cscc gives a conv.i , butI think that is a non-issue ? .. (the type is 
> immaterial right ?)

Good catch.  Pointers are considered unsigned native integers.  There
may be some freakiness casting from signed to unsigned type.  I'll see
what I can do about that.  It may drag me into the 'signed/unsigned'
problem, which I've been meaning to tackle.

-js 

-- 
-Jonathan P Springer <address@hidden>
------------------------------------------------------------------------------
"A standard is an arbitrary solution to a recurring problem." - Joe Hazen


reply via email to

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