What prevents us from using an interface for that purpose, which would consist 
of at least 3 functions:

- IntPtr Allocate(uint size);
- void Deallocate(IntPtr ptr);
- bool Owns(IntPtr ptr);

I think this serves a better purpose. Delegates are going to take a bit longer 
to implement as they require some non-trivial runtime support.

Mike

Bruce Markham schrieb: 

I'm going to agree with Jonathan on that one.

I had talked along the same concept before - the idea of an allocation context 
- but it really boils down to the allocation and deallocation being delegates. 
(Or function pointers - depending on where in the kernel you are using them.)
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to