[IronPython] Default-valued arguments to C# functions
jdhardy at gmail.com
Sat Apr 24 22:23:42 CEST 2010
On Fri, Apr 23, 2010 at 9:43 PM, Curt Hagenlocher <curt at hagenlocher.org> wrote:
>> I think you need to use DefaultValueParameter instead of DefaultValue.
>> It's an easy mistake to make -- I've made it myself. :(
> Gah! I mean "DefaultParameterValue".
That did it - thanks Curt. I agree that that's way to subtle a
difference, but I'm not sure what can be done about it.
Interestingly, using DefaultValue worked for anything that wasn't an
object - `[Optional][DefaultValue(-1)]int index` worked just fine.
More information about the Ironpython-users