Boolean values: Difference between revisions

m
Line 931:
Ecstasy's defines [https://github.com/xtclang/xvm/blob/master/lib_ecstasy/src/main/x/ecstasy/Boolean.x an enumeration named Boolean], which contains the values <span style="background-color: #e5e4e2"><tt>&nbsp;False&nbsp;</tt></span> and <span style="background-color: #e5e4e2"><tt>&nbsp;True&nbsp;</tt></span>.
<syntaxhighlight lang="java">
module GeorgeBoole {
{
@Inject Console console;
 
void run() {
{
Boolean f = False;
assert !f == True;
Line 949 ⟶ 947:
console.print($"0==1 = {0==1}");
console.print($"!False = {!False}");
}
}
}
</syntaxhighlight>
 
162

edits