REBOL3 tracker
  0.9.12 beta
Ticket #0002237 User: anonymous

Project:

Previous Next
Short URL: http://issue.cc/r3/2237
rss
TypeWish Statussubmitted Date4-Aug-2015 19:37
Versionr3 master CategoryUnspecified Submitted byfork
PlatformAll Severityminor Prioritynormal

Summary APPLY should raise an error on excess arguments
Description At time of writing, APPLY will fill in NONE for unspecified arguments or refinements. It will also tolerate too many. So in the test suite, the following is expected to succeed:

1 == apply func [a] [a] [1 2]

As APPLY is already somewhat brittle in terms of corresponding to the order in which refinements appear in the function spec, this "laxness" only makes it worse. It likely represents a misunderstanding or error. Raising an error would be preferable.
Example code

			

Assigned ton/a Fixed in- Last Update4-Aug-2015 19:37


Comments

Date User Field Action Change
4-Aug-2015 19:37 Fork Ticket Added -