[Prev][Next][Index][Thread]
Q: Symbol optional in keyword parameter definition?
-
To: info-dylan@ai.mit.edu
-
Subject: Q: Symbol optional in keyword parameter definition?
-
From: "Roland Paterson-Jones" <rolandpj@bigfoot.com>
-
Date: Mon, 25 Jun 2001 10:00:01 -0400 (EDT)
-
Organization: IBM Hursley
-
Xref: traf.lcs.mit.edu comp.lang.dylan:13406
The BNF for dylan in "The Dylan Reference Manual", p. 426, describes a
keyword parameter as:
keyword-parameter:
SYMBOL(opt) variable default(opt)
i.e. the keyword symbol is optional(?).
What does it mean when you define a method such as:
define method m( req1, req2, req3, #key key1 ) ...
where key1 is a keyword parameter with no associated keyword symbol? How can
key1 be bound and used?
Thanks
Roland
Follow-Ups: