User Tools

Site Tools


ch2_4_symbols

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ch2_4_symbols [2022/02/22 11:57] – created adminch2_4_symbols [2025/01/29 10:08] (current) admin
Line 1: Line 1:
 **//LabLISP packages and symbols//** **//LabLISP packages and symbols//**
  
-Built-in LabLISP operators are represented by symbols from the base package ''LABLISP''.+Built-in LabLISP operators are represented by symbols from the base package ''LABLISP''.\\ 
 +Default package is the ''USER'' package, which inherits all the base package symbols.\\ 
 +There is also ''KEYWORD'' package with 3 symbols only: ''INTERNAL'', ''EXTERNAL'', ''INHERITED''.
  
-Default package is the ''USER'' packagewhich inherits all the base package symbols.+Symbols ''&OPTIONAL'', ''&REST'', ''&WHOLE'' and ''&BODY'' are sometimes called keywords, but they are symbols interned in base package, and they are not bound to any value.
  
-There is also ''KEYWORD'' package with 3 symbols only: ''INTERNAL'', ''EXTERNAL'', ''INHERITED''.+Packages are not represented by symbols for obvious reasons. They are accessed by the name string. Several more packages are defined through the LabLispHost mechanics.
  
-Apart from the functions and special operators, these symbols are defined:+Apart from the functions and special operators, these symbols are defined and bound:
  
 ''NIL'' and ''T'' as constants. ''NIL'' and ''T'' as constants.
 +
 +''PI'' = 3.14159, is //not// defined as constant.
 +
 +''*PACKAGE*'' is the current package.
 +
 +''*ALLOW-NON-LITERAL-CONST*'' special LabLISP flag, default NIL. 
 +
 +''*PRINT-SHARED*'' control printing of shared list structure, default NIL.
 +
 +Following 5 are internal processing flags, default NIL.
 +
 +''*MACROEXPAND-ONLY*''
 +
 +''*BACKQUOTE-CONTEXT*''
 +
 +''*BACKQUOTE-SPLICE*''
 +
 +''*BACKQUOTE-HARD-SPLICE*''
 +
 +''*FUNCTOR-EVAL*''
 +
 +
  
  
  
  
ch2_4_symbols.1645556264.txt.gz · Last modified: 2022/02/22 11:57 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki