Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
INTERCAL
(section)
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"/>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)