![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
You can't access the caller's part of the stack from inside ObjArrayGen. You have to pass in those objects as parameters. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I am curretly porting an open source language www.harbour-project.org to .NET. I have the following IL coding question, hopefully someone may provide me some guidance: I have some objects ("object" type) placed at the stack. Then I need to create an ArrayList and pop those objects from the stack and add them to the array. i.e.: ldc.i4.s 123 box [mscorlib]System.Int32 ldc.i4.s 456 box [mscorlib]System.Int32 call object ObjArrayGen( int32 ) // I do know how many objects are placed at the stack The question is how could I pop those objects from the stack and add them to a new created ArrayList from inside ObjArrayGen() ? I can't create a object[] in advance (I already considered such way). thanks! Please remove REMOVE_THIS from my address to answer me directly. Antonio |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |