home *** CD-ROM | disk | FTP | other *** search
-
- If a vector has a 'unique' property on it's property list, then it will
- not be copied by 'copy'.
-
- 'untrace' will now autoload /usr/lib/lisp/trace.
-
- A number of functions and macros were contributed by the bair group:
-
-
-
-
-
-
-
-
- (<= 'fx_arg1 'fx_arg2 ...)
- (<=& 'x_arg1 'x_arg2)
-
- RETURNS: t iff (> 'fx_arg1 'fx_arg2) [or (>& 'x_arg1
- 'x_arg2)] is nil, otherwise nil. The general
- function, <=, can take more than two argu-
- ments.
-
- (>= 'fx_arg1 'fx_arg2)
- (>=& 'x_arg1 'x_arg2)
-
- RETURNS: t iff (< 'fx_arg1 'fx_arg2 ...) [or (<&
- 'x_arg1 'x_arg2)] is nil, otherwise nil.
-
- NOTE: The general function, >=, can take more than two
- arguments.
-
- (litatom 'g_arg)
-
- RETURNS: t iff g_arg is an atom, but not a number.
-
- (nequal 'g_x 'g_y)
-
- RETURNS: t iff g_x is not equal to g_y, otherwise nil.
-
- (lineread [['p_port] ['s_flag]])
-
- RETURNS: a list consisting of s-expressions on a line
- from the port p_port (or piport if p_port is
- not given). If an s-expression (e.g., a list)
- takes more than one line, or a line terminates
- in a space or tab, then lineread continues
- reading until an expression ends at the end of
- a line.
-
- NOTE: If s_flag is t, then if the first character on a
- line is a newline, lineread performs a tyi and
- returns nil. If s_flag is nil or not present,
- lineread does a read skipping over any blank
- lines to make sure that an s-expression is actu-
- ally read.
-
- SIDE EFFECT: lineread uses read, advancing the port
- character pointer.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- (defv g_arg1 g_arg2)
-
- EQUIVALENT TO: (set g_arg1 g_arg2)
-
- (pp-form 'g_form ['p_port] ['n_lmar])
-
- RETURNS: nil
-
- SIDE EFFECT: g_form is pretty-printed to the port
- p_port (or poport if p_port is not given).
- If pp-form is also supplied with an
- integer (n_lmar), that integer will be
- used as a left margin setting (0 is the
- default). This is the function which pp
- uses (n_lmar = 0). pp-form does not look
- for function definitions or values of
- variables, it just prints out the form it
- is given.
-
- NOTE: This is useful as a top-level-printer, c.f. top-
- level in Chapter 6.
-
- (sload 's_file1 ...)
-
- SIDE EFFECT: The files named are opened for reading and
- each form is read, optionally printed, and
- evaluated.
-
- NOTE: What sload prints is controlled by the special
- atom $sldprint. If $sldprint is t (default),
- then if a form is recognizable as a function
- definition, only the function name is printed,
- otherwise the whole form is printed. If
- $sldprint is eq to value, then the result of each
- form's evaluation will also be printed. Printing
- the forms' values can be controlled by setting
- sload-print equal to the name of the function to
- be called. sload recognizes named functions by
- looking at the sloadprintarg property of the
- function name. The value of the sloadprintarg
- property should be the argument number of the
- function name. For the standard Franz Lisp func-
- tions, the properties are already set.
-
- EXAMPLE: (defprop def 1 sloadprintarg) ; This is the
- default--declaring that
- ; the name of
- the function definition is the
- ; first argu-
- ment.
-
-
-
-
-
-
-
-
-
-
-
-
-
- The functions described below are an alternative
- to the gensym facility. They generate new symbols by
- attaching counter numbers to the ends of the symbols'
- names. An example follows of how the functions are
- used.
-
-
- ____________________________________________________
-
- -> (initsym joe (john 5)) ; initializing new symbol counters
- (joe0 john5)
- -> (newsym john) ; create a new symbol
- john6
- -> (newsym chuck) ; symbol need not be initsym'ed
- chuck0
- -> (oldsym john) ; get current symbol
- john6
- -> (allsym john) ; get all symbols between 0 and counter
- (john0 john1 john2 john3 john4 john5 john6)
- -> (allsym (john 5)) ; get all symbols between 5 and counter
- (john5 john6)
- -> (remsym joe (john 4)) ; remob all interned symbols
- ; associated with joe and from
- ; john4 to the current john
- ; symbol--returns symbols with symbol counters
- ; before doing remsym
- (joe0 john6)
- -> (symstat joe john)
- ((joe nil) (john 3))
- ____________________________________________________
-
-
-
-
- (initsym g_arg1 ...)
-
- WHERE: g_argi is a list (n_counteri s_argi) or a
- string s_argi (which is equivalent to (0
- s_argi)).
-
- RETURNS: a list of interned identifiers using the sym-
- bol counters n_counteri, i.e., the result of
- concatenating s_argi to n_counteri.
-
- EXAMPLE: (initsym joe (john 5)) ==> (joe0 john5)
-
- NOTE: See also newsym, oldsym, allsym, remsym, and sym-
- stat functions.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- (newsym s_arg)
-
- RETURNS: an interned identifier formed by concatenating
- the name s_arg to the symbol counter for
- s_arg. The symbol counter is stored on the
- property list of s_arg under symctr. If there
- is no counter, a counter of 0 is used and
- added to the property list. Thus, a symbol
- need not be initsymed.
-
- EXAMPLE: (initsym joe (john5)) ==> (joe0 john5)
- (newsym john) ==> john6
- (newsym joe) ==> joe1
-
- NOTE: See also initsym, oldsym, allsym, remsym, and
- symstat functions.
-
- (oldsym s_arg)
-
- RETURNS: the identifier using the current symbol
- counter for s_arg, rather than creating a new
- identifier. If no symbol counter exists for
- s_arg, then s_arg is returned.
-
- NOTE: See also initsym, newsym, allsym, remsym, and
- symstat functions.
-
- (allsym g_arg)
-
- WHERE: g_arg is a list (s_arg n_counter) or a string
- s_arg (equivalent to (s_arg 0)).
-
- RETURNS: a list of all the created identifiers between
- n_counter and the current symbol counter for
- s_arg.
-
- EXAMPLE: (allsym john) ==> (john0 john1 john2)
-
- NOTE: See also initsym, newsym, oldsym, remsym, and
- symstat functions.
-
- (remsym g_arg1 ...)
-
- WHERE: g_argi is a list (s_argi n_counteri) or a
- string s_argi (which is equivalent to (s_argi
- 0)).
-
- RETURNS: a list of symbols s_argi with the current sym-
- bol counters.
-
- SIDE EFFECT: remsym remob's all the created identifiers
- between zero and the current symbol
- counter for s_argi.
-
-
-
-
-
-
-
-
-
-
-
-
-
- NOTE: See also initsym, newsym oldsym, allsym, and sym-
- stat functions.
-
- (symstat s_arg1 ...)
-
- RETURNS: a list of pairs consisting of (s_argi symctri)
- where symctri is s_argi's current symbol
- counter.
-
- NOTE: See also initsym, newsym, oldsym, allsym, and
- remsym functions.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-