[Prev][Next][Index][Thread]
Q: spec on #rest and #key
-
To: info-dylan@ai.mit.edu
-
Subject: Q: spec on #rest and #key
-
From: "Roland Paterson-Jones" <rolandpj@bigfoot.com>
-
Date: Wed, 16 May 2001 09:30:01 -0400 (EDT)
-
Organization: IBM Hursley
-
Xref: traf.lcs.mit.edu comp.lang.dylan:13298
The DRM states that "If the parameter list specifies a #key in addition to a
#rest it is not said to accept a variable number of arguments", and "If a
function that accepts keyword arguments is called, it will signal an error
if ... the arguments following the required arguments are not keyword/value
pairs. This is true even if the function specifies #rest".
I read it that you cannot use variable arguments with any function that uses
keywords. Is this correct? If so, why?
Thanks
Roland
Follow-Ups: