[Prev][Next][Index][Thread]

Q: Symbol optional in keyword parameter definition?



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: