I've been trying to call a VisualAPL function, from C#, with a 2D string array as input, update this input, and then return this updated input array.
There are workarounds, as per this thread - http://forum.apl2000.com/viewtopic.php?t=705
. I can return a VisualAPL string array to C# as an object[,], then use ObjectVar[x,y].ToString() to get data out. That works.
But unless it is possible to directly return a string[,] object, it means that every non-VisualAPL program that calls a VisualAPL routine, and wants a 2D string array back, will have to go through extra work to get the data out.
Is it not possible to return a string[,] from VisualAPL? I don't mean the trivial example below:
public static String[,] WantToReturnStringVector(String[,] input)
// Return the input.
Of course this is possible. I mean the case where ANY operation is done to modify input, or to create a VisualAPL variable which is then INSIDE VisualAPL cast or converted to a string[,] variable and then returned?
I don't want calling programs to have to go to any extra conversion work.
Yes, I realize I could write a wrapper routine in C#, and I will do that if I have to. It seems like a lot of extra work for what seems, on the surface, like it should be an easy thing to do.
Thanks for any help.