Function prototype: Difference between revisions
Content added Content deleted
Line 260: | Line 260: | ||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |
||
In Common Lisp, function prototypes can be used with <code>(declaim (inline func-name))</code> function arguments are taken when the function is defined. In addition, the argument types aren't needed. |
In Common Lisp, function prototypes can be used with <code>(declaim (inline func-name))</code> function arguments are taken when the function is defined. In addition, the argument types aren't needed. |
||
Caveat -- This works with specific implementations of CL. This was tested in SBCL. |
|||
<lang lisp> |
<lang lisp> |