In my own version of the trunk i'm using function pointers to transfer
timer / keyboard events to my Console class..
(Eventually this will have to be replaced by some event buffer)

So now i ran into a problem with the way c# works & the limitations of
the AOT compiler..
The problem is; i would like to use a struct as a parameter in my
event functions..
But the moment i call the function i need to do: &myStruct .. and C#
won't let me do this..
So maybe it would be possible to create an AddressOf stub?

Also, right now i have a Call function in my version of the kernel,
which i use to execute my function pointer with a parameter..
this way i can simply do
Kernel.Call(myFunction, myParam)

unfortunatly, i have to make a version of this function for every type
of parameter i would us.. which is clumsy..
i would like to use generics (not sure how that would work with the aot)..
And altough i can restrict the parameters to be 'struct' (value-type),
now all parameters run into the &myStruct problem above...
maybe a generic call function stub would be usefull?

All in all, it would be nicest if we could just use the delegate
syntax in C#, and (with some restrictions obviously) let the AOT sort
it out for us..

I'll look at the AOT code to see what i can do, but my time is rather limited..

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to