[Openmcl-devel] CCL <-> C++ interface generator in alpha, reviewers wanted

dherring at tentpost.com dherring at tentpost.com
Wed Apr 13 09:29:22 PDT 2011


Kevin Reid wrote:
> If you really want to avoid keyword arguments, use a separate function
> which calls make-instance (or, if it suits, use defstruct instead of
> defclass, which has the infamous “boa constructor” mode).

Explanation:

BOA = by order of arguments
BOA constructor = great pun
http://www.lispworks.com/documentation/HyperSpec/Body/03_df.htm
http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node174.html

It is the same position-dependent argument list used by C/C++, Fortran,
Java, ... but usually without type dispatch.

Actually it is a bit more like

struct S { int x; int y;};
S s={2, 3}; // BOA constructor

- Daniel

P.S.  We have veered far from CCL-specific issues.  A better list may be
cffi-devel.
http://common-lisp.net/mailman/listinfo/cffi-devel




More information about the Openmcl-devel mailing list