pdl / Test-Proto

OO test script golf sugar
1 stars 1 forks source link

Specify wantarray context when calling object methods #19

Closed pdl closed 11 years ago

pdl commented 12 years ago

Test::Proto::Object should define and implement a syntax for the user to specify, list/scalar/void context, so that prototypes which behave differently depending on the value of wantarray can be tested. Also specify a sane default (probably list).

Consider whether the context can be determined from the prototype.