[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing flags to a function
From: |
Marius Vollmer |
Subject: |
Re: passing flags to a function |
Date: |
08 May 2006 00:03:12 +0300 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Dan McMahill <address@hidden> writes:
> Are you meaning
>
> (foo (list 'flag1 'flag2 'someotherflag))
To make this look nicer, you can also write
(foo '(flag1 flag2 someotherflag))
Another option are keyword arguments, like
(foo :flag1 #t :flag2 #t :someotherflag #t)
There is no C-level support for parsing argument lists like this,
unfortunately; you have to do it manually.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405