gnu-misc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the difference between defsubst and defun ?


From: LanX
Subject: Re: What is the difference between defsubst and defun ?
Date: Sat, 4 Dec 2010 16:27:40 -0800 (PST)
User-agent: G2/1.0

it's documented see

http://www.gnu.org/software/emacs/elisp/html_node/Inline-Functions.html

in short it's a function which is not called but the body is copied in
place ("inline") like a macro.

Like this the overhead of a function call is safed with the
disadvantage of expanded code size.

Perl has a limited support for inline functions.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]