From: Eric S. Raymond Date: Fri, 20 Feb 2004 07:20:27 +0000 (+0000) Subject: Added another example. X-Git-Tag: 1.0~55 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=36707908a41445e2cd3e040569a9a6d32941992f;p=mad.git Added another example. --- diff --git a/doc/mad-manual.xml b/doc/mad-manual.xml index e05bc07..7e20e64 100644 --- a/doc/mad-manual.xml +++ b/doc/mad-manual.xml @@ -12,6 +12,7 @@ + @@ -254,8 +255,8 @@ difficult to imagine code that would. Label arrays, array-mode variables, and the associated computed-transfer statement are not implemented (mainly because the manual did not include programs with which they could be tested). -Neither are multiple ENTRY points, EQUIVALENCE, TAPE, or DRUM -statements. +Neither are multiple ENTRY points, EQUIVALENCE, ERASABLE, COMMON, +TAPE, or DRUM statements. Only the no-argument case of ERROR RETURN is supported. The language describing the more general case of this feature is deeply @@ -2127,6 +2128,9 @@ available for use by successive SAVE statements. Input-Output Statements + The Retrocomputing Museum implementation does not +implement TAPE and DRUM statements. + In this section the follwing definition the following definitions will hold. &scriptF; is the location of a format specification vector (see ) which must @@ -3027,6 +3031,9 @@ by linear-subscript only (i.e., as an element of a vector). Note that occurrence of any elements from any two arrays in the same perentheses implies equating the entire arrays accordingly. + The Retrocomputing Museum implementation does not +implement EQUIVALENCE. + ERASABLE Declaration @@ -3046,6 +3053,10 @@ allowing several arrays to occupy the same storage at different times. It should be understood that this storage is accessible to, andmay be used by, subroutines. +This declaration is a memory-footprint optimization hack. +The Retrocomputing Museum implementation does not implement +it. + 3.6 PROGRAM COMMON Declaration @@ -3099,6 +3110,9 @@ program and several external functions, the main program must be loaded into the computer first if PROGRAM COMMON is used at all. + The Retrocomputing Museum implementation does not +implement COMMON. + Presetting Vectors @@ -3504,6 +3518,26 @@ there is no general way to implement this in generated C. +<emphasis>Problem:</emphasis> Evaluate the recursive function, + +Due to a reproduction error in the original, the Analysis +paragraph below is somewhat mangled (the right-hand side sliced +off). Italicized text in the paragraph is a best guess as to what it +actually said. + +Analysis: This is the definition of n! +Although it could have been implemented directly +using a THROUGH statement, instead the function will + be evaluated using its recursive definition to +illustrate how recursive functions can be +handled. + + +&factfunc; + + + +