From: David Kastrup Date: Fri, 12 Jun 2015 15:34:17 +0000 (+0200) Subject: smobs.hh: mention that GUILE 1 gives callable structs at most 3 args X-Git-Tag: release/2.19.22-1~53 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5c63a28bd87431364a78d7bfcfaf4482a78d3f67;p=lilypond.git smobs.hh: mention that GUILE 1 gives callable structs at most 3 args --- 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) {