Menu

Local variables

Mark Anthony Taylor (Shyreman)

All local variables are valid only in the block in which they are defined. One can create an
s-expression in a function body, and define variables inside that block. Once execution leaves the
block the local variables are deconstructed and the associated memory released.

Local variable names all begin with a lower case letter a-z followed by an arbitrary sequence of
alphanumeric characters A-Z a-z and 0-9.

The size of a structure is given by (sizeof <name>). If <name> refers to a local variable
then the value is the number of bytes allocated for the local variable. If <name> refers to a type,
then the value returned is the size of the type in bytes. The allocation size of a variable may
sometimes be larger than the size of the variable type.

(Int32 pointerSize = (sizeof Pointer))

Related

Wiki: Content

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.