"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "TeXmacs/doc/devel/scheme/utils/utils-overload.en.tm" between
TeXmacs-1.99.8-src.tar.gz and TeXmacs-1.99.9-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

utils-overload.en.tm  (TeXmacs-1.99.8-src):utils-overload.en.tm  (TeXmacs-1.99.9-src)
<TeXmacs|1.99.1> <TeXmacs|1.99.8>
<style|<tuple|tmdoc|english>> <style|<tuple|tmdoc|english|old-spacing>>
<\body> <\body>
<tmdoc-title|Function definition and contextual overloading> <tmdoc-title|Function definition and contextual overloading>
Conventional programming languages often provide some means to overload Conventional programming languages often provide some means to overload
certain functions depending on the types of the arguments. <TeXmacs> certain functions depending on the types of the arguments. <TeXmacs>
provides additional context-based overloading mechanisms, which require the provides additional context-based overloading mechanisms, which require the
use of the <scm|tm-define> construct for function definitions (and use of the <scm|tm-define> construct for function definitions (and
<scm|tm-define-macro> for macro definitions). Definition with <scm|tm-define-macro> for macro definitions). Definition with
<scm|tm-define> also allows the specification of properties of the <scm|tm-define> also allows the specification of properties of the
skipping to change at line 159 skipping to change at line 159
A current limitation of the implementation is that functions overloaded A current limitation of the implementation is that functions overloaded
using <scm|:require> and <scm|:mode> cannot have different options. This using <scm|:require> and <scm|:mode> cannot have different options. This
means in particular that you cannot specify different values for means in particular that you cannot specify different values for
<scm|:synopsis> depending on the context. <scm|:synopsis> depending on the context.
</warning> </warning>
<\explain> <\explain>
<scm|(:synopsis <scm-arg|short-help>)><explain-synopsis|short <scm|(:synopsis <scm-arg|short-help>)><explain-synopsis|short
description> description>
<|explain> <|explain>
This option gives a short discription of the function or macro, in the This option gives a short description of the function or macro, in the
form of a string <scm-arg|short-help>. As a convention, <scheme> form of a string <scm-arg|short-help>. As a convention, <scheme>
expressions may be encoded inside this string by using the expressions may be encoded inside this string by using the
<verbatim|@>-prefix. For instance: <verbatim|@>-prefix. For instance:
<\scm-code> <\scm-code>
(tm-define (list-square l) (tm-define (list-square l)
\ \ (:synopsis "Appends the list @l to itself") \ \ (:synopsis "Appends the list @l to itself")
\ \ (append l l)) \ \ (append l l))
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)