Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Advice (programming)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Implementations== A form of advices were part of [[C with Classes]] in the late 1970s and early 1980s, namely functions called <code>call</code> and <code>return</code> defined in a class, which were called before (respectively, after) member functions of the class. However, these were dropped from [[C++]].<ref>''The Design and Evolution of C++,'' p. 57</ref> Advices are part of the [[Common Lisp Object System]] (CLOS), as <code>:before</code>, <code>:after</code>, and <code>:around</code> methods, which are combined with the primary method under "standard method combination".<ref>{{Cite web |url=http://www.aiai.ed.ac.uk/~jeff/clos-guide.html |title=A Brief Guide to CLOS |access-date=2015-04-27 |archive-url=https://web.archive.org/web/20150506043702/http://www.aiai.ed.ac.uk/~jeff/clos-guide.html |archive-date=2015-05-06 |url-status=dead }}</ref> Common Lisp implementations provide advice functionality (in addition to the standard method combination for CLOS) as extensions. LispWorks<ref>[http://www.lispworks.com/documentation/lw70/LW/html/lw-32.htm LispWorks 7 User Guide and Reference Manual, The Advice Facility]</ref> supports advising functions, macros and CLOS methods. EmacsLisp added advice-related code in version [http://web.mit.edu/dosathena/sandbox/emacs-19.28/src/ChangeLog 19.28], 1994.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)