[Mono-list] detecting param object[] foo
Sterling Hughes
sterling@bumblebury.com
06 Feb 2003 07:31:31 -0500
Hi,
I've been playing around with detecting var arg style parameters (when I
say that, I mean the C# equivalent, excuse a C programmer. :) For
example:
Console.WriteLine(string, param object[] foo)
On the internals level, from what I see that is mapped to a
MONO_TYPE_SZARRAY. Are there any other distinguishing characteristics -
I know lupus (on irc) mentioned something about detecting a sentinel,
but I'm not sure exactly what that entails? Are there any other
external requirements (ie, I imagine a parser would record how many
"extra" arguments needed to be passed).
Thanks,
Sterling
--
"A business that makes nothing but money is a poor kind of business."
- Henry Ford