From 5c63a28bd87431364a78d7bfcfaf4482a78d3f67 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Fri, 12 Jun 2015 17:34:17 +0200 Subject: [PATCH] smobs.hh: mention that GUILE 1 gives callable structs at most 3 args --- lily/include/smobs.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lily/include/smobs.hh b/lily/include/smobs.hh index e95637cb7c..3bcec9931e 100644 --- a/lily/include/smobs.hh +++ b/lily/include/smobs.hh @@ -213,7 +213,12 @@ private: } // Well, function template argument packs are a C++11 feature. So - // we just define a bunch of trampolines manually. + // we just define a bunch of trampolines manually. It turns out + // that GUILE 1.8.8 cannot actually make callable structures with + // more than 3 arguments anyway. That's surprising, to say the + // least, but in emergency situations one can always use a "rest" + // argument and take it apart manually. + template static SCM smob_trampoline (SCM self) { -- 2.39.5