Up | Next | Prev | PrevTail | Tail |
Request to set constant NAME to a different value.
The compiler attempts to replace function applications by the corresponding value whenever each of the arguments is either constant or an application which may be replaced by its value. The following is a list of all functions whose application may be evaluated during compilation. Clearly some functions like cons cannot be evaluated at compile time.
abs aconc acos acosd acot acotd acsc acscd add1 alphanumbericp alphap asec asecd asin asind
ass assoc atan atan2 atan2d atand atom atsoc
bldmsg bothcasep
car cdr ceiling char-downcase char-equal char-font char- greaterp char-int char-lessp char-upcase
char< char= char> constantp cos cosd cot cotd csc cscd
degreestodms degreestoradians difference digit digit-char digitp divide dmstodegrees
dmstoradians
eq eqcar eqn eqstr equal expt
factorial fix fixp float floatp floor
geq getv
land lastcar lastpair length leq lessp list lnot log log10 log2 lor lowercasep lshift lxor
max2 member memq min2 minus minusp mkquote mod
ne neq not nth null
onep
pairp plus2 pnth
radianstodegrees radianstodms recip remainder rest reserse round
sec secd sin sind size sqrt string-not-greaterp string-not- lessp string-repeat string-search
string-search-equal string- search-from-string-search-from-equal string-size string-trim
string-upcase string-upper-bound string< string<= string<> string= string> string>= stringp
sub sub1 substring-equal substring=
tan tand times2
upbv uppercasep
vector-empty? vector-fetch vector-size vector-upper-bound vector2l ist vector 2string
vectorp
There is another facility in PSL for defining constants. You are encouraged to use the function define-constant. The following two functions are documented here for completeness.
Up | Next | Prev | PrevTail | Front |