Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
INTERCAL
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Data structures === INTERCAL-72 (the original version of INTERCAL) had only four [[data type]]s: the 16-[[bit]] [[integer]] (represented with a <code>.</code>, called a "spot"), the 32-bit integer (<code>:</code>, a "twospot"), the [[Array data type|array]] of 16-bit integers (<code>,</code>, a "tail"), and the array of 32-bit integers (<code>;</code>, a "hybrid"). There are 65535 available variables of each type, numbered from <code>.1</code> to <code>.65535</code> for 16-bit integers, for instance. However, each of these variables has its own [[stack (data structure)|stack]] on which it can be pushed and popped (STASHed and RETRIEVEd, in INTERCAL terminology), increasing the possible complexity of data structures.<ref name="manual72"/> More modern versions of INTERCAL have by and large kept the same data structures, with appropriate modifications; TriINTERCAL, which modifies the [[radix]] with which numbers are represented, can use a 10-[[trit (computing)|trit]] type rather than a 16-bit type,<ref name="manualick"/> and CLC-INTERCAL implements many of its own data structures, such as "classes and lectures", by making the basic data types store more information rather than adding new types.<ref name="clc"/> Arrays are dimensioned by assigning to them as if they were a [[scalar (computing)|scalar]] variable. Constants can also be used, and are represented by a <code>#</code> ("mesh") followed by the constant itself, written as a [[decimal]] number; only integer constants from 0 to 65535 are supported.<ref name="manual72"/>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
INTERCAL
(section)
Add topic