Content deleted Content added
Prosfilaes (talk | contribs) |
Jorge Stolfi (talk | contribs) →Stuff removed from Boolean data type article: new section |
||
Line 400:
: First, we don't know anything about ADA. This is the article for Ada. We can't even tell if the article is speaking about the language, or something else.--[[User:Prosfilaes|Prosfilaes]] ([[User talk:Prosfilaes|talk]]) 03:09, 21 October 2009 (UTC)
== Stuff removed from Boolean data type article ==
The following section was removed from the article [[Boolean data type]]:
'''begin removed text'''
----
----
[[Ada programming language|Ada]] (defined in 1979, implemented in 1983) defines <code>Boolean</code> in the package Standard as an enumerated type with values <code>False</code> and <code>True</code> where <code>False</code> < <code>True</code>.
<source lang="ada">
type Boolean is (False, True);
p : Boolean := True;
...
if p then
...
end if;
</source>
The relational operators (<code>=</code>, <code>/=</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>) apply to all enumerated types, including <code>Boolean</code>. Boolean operators <code>and</code>, <code>or</code>, <code>xor</code>, and <code>not</code> are defined on <code>Boolean</code> and any declared subtype. The Boolean operators also apply to arrays of <code>Boolean</code> values.
----
----
'''end removed text'''<br/>Is there a place for this text in the Ada-related articles? Perhaps in the Wikibook? Thanks, and all the best, --[[User:Jorge Stolfi|Jorge Stolfi]] ([[User talk:Jorge Stolfi|talk]]) 23:26, 30 December 2009 (UTC)
|