[Openmcl-devel] Variadic initializers
Didier Verna
didier at lrde.epita.fr
Tue Feb 26 06:39:41 PST 2008
Hello,
I would like to perform the equivalent of the following in CCL:
[NSMutableDictionary
dictionaryWithObjectsAndKeys: obj1, @"obj1", obj2, @"obj2", ..., nil];
As you can see, this is a variadic call. The openmcl manual has a
paragraph about a rather heavy syntax for sending variadic messages, but
I was wondering if something more practical exists now. I would have
thought something like:
(make-instance 'ns:ns-mutable-dictionary
:with-objects-and-keys obj1 #@"obj1" ...) ;; no nil at the end ;-)
Thanks !
--
5th European Lisp Workshop at ECOOP 2008, July 7: http://elw.bknr.net/2008/
Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier
EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-Bicêtre, France Fax.+33 (0)1 53 14 59 22 didier at xemacs.org
More information about the Openmcl-devel
mailing list