Mention that bool is a 1-bit integral type

Issue #24 closed
Former user created an issue

import std.stdio;

void foo(bool b) { writeln(b.stringof); }

void foo(ubyte i) { writeln(i.stringof); }

void main() { foo(0); // goes to bool foo(1); // goes to bool foo(2); // goes to ubyte }

Comments (2)

  1. Log in to comment