9:10:05beachSo I need a method that differs from the one on funcall-instruction in that it should do (funcall (car ...) ,@(loop...)) or (apply (car ...) (loop...)) except that i don't know what to put in place of ...
9:10:26beachIdeally, the cell should be accessed at compile time.
9:12:41beachThe inputs of the new instruction are only the arguments and not the function object.
9:14:34heisigLet me check whether I understood that correctly. You want somethings like a 'symbol-funcall' instruction where the symbol is always a constant.
9:14:50heisigSo that you need to supply one less argument to it at run time.
9:15:13beachIt is called NAMED-CALL-INSTRUCTION and it already exists.
9:15:27beachThe instruction in Cleavir contains the name.
9:15:46beachA class in SICL creates a subclass that contains a function cell.
9:16:25beachSo when the HIR program is tied to the environment, the function cell is populated from the environment, using the name.
9:17:00heisigSo the only difference to a funcall instruction is that it doesn't call the first argument, but the car of the cell it closes over.