This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Optional Arguments


James Dean Palmer <james@tiger-marmalade.com> writes:

> What are #:x and #:y in c?

They are `keywords', just as on the Scheme side.  Look into
<libguile/kw.h> to see what you can do with them.  For example:

    char *str = SCM_CHARS(SCM_KEYWORDSYM(kw));

The symbol of a keyword always has a "-" prepended to it.  I think
this was done to support TCL better.

- Marius