SUMMARY Re: Keyword arguments...

Subject: SUMMARY Re: Keyword arguments...
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Thu, 6 Aug 1998 12:28:04 -0400
Thanks to everyone for the hints and suggestions.

| > Is it the case, as it appears to be, that in user-defined
| > functions with keyword arguments, the keyword arguments must
| > always appear last?
| 
| Yes.

But, you can use #!rest to get _all_ the arguments and then
grovel through them yourself

  (define make-element #!rest args)
	
  (make-element gi: "foo" attributes: '() (process-children))

FYI, you can't, however, use

  (define make-element #!key (gi "") #!rest args)

It also appears (I've read the doc, but not tested it yet) that
you could use the DSSSL2 declare-flow-object-macro function.

                                        Cheers,
                                          norm
-- 
Norman Walsh <ndw@xxxxxxxxxx>      | So, are you working on finding
http://nwalsh.com/                 | that bug now, or are you leaving
                                   | it until later? Yes.


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Keyword arguments..., (continued)
    • Alexander Taranov - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA19001Thu, 6 Aug 1998 11:00:23 -0400 (EDT)
    • Paul Prescod - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA21125Thu, 6 Aug 1998 11:58:55 -0400 (EDT)
    • Brandon Ibach - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA21156Thu, 6 Aug 1998 11:59:10 -0400 (EDT)
    • James Clark - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA21957Thu, 6 Aug 1998 12:13:10 -0400 (EDT)
      • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA22678Thu, 6 Aug 1998 12:27:48 -0400 (EDT) <=