On Fri, Apr 23, 2010 at 9:43 PM, Curt Hagenlocher <c...@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.

- Jeff
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to