Ticket #326 (closed enhancement: fixed)
Move to .Net 4.0: Support Named Parameters
Reported by: | hopscc | Owned by: | hopscc |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.4 |
Keywords: | Cc: |
Description
C# 4.0 supports Named parameters on method paramlist so methods can be called giving params in any order tagged by their name.
Cobra should support this also
see C# 4.0 New Features Named Parameters
C# uses name:arg in arglist to tag the arg to the parameter.
Cobra should probably use assignment name=arg.
myArrayList = ArrayList() Process( "foo", true ) # valid, moreData omitted Process( "foo", true, myArrayList ) # valid Process( "foo", moreData = myArrayList) # valid, ignoreWS omitted Process( "foo", moreData=myArrayList, ignoreWS=false ) # valid, but silly
Support this after addressing ticket:325 (Optional Parameters)
Watch out for complications from existing support for auto property assignment (in initializer calls).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.