[Issue 3223] New: bool value conversions from "false" and "true" are missing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 1 23:04:16 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3223

           Summary: bool value conversions from "false" and "true" are
                    missing
           Product: D
           Version: 2.029
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: acehreli at yahoo.com


false and true are outputted as "false" and "true". It is natural to have the
opposite conversions as well. The following program outputs 

  Segmentation fault

when "false" is sent to its standard input:

  import std.cstream;

  void main()
  {
      bool b;
      din.readf(&b);
  }

There doesn't seem to be any conversion from "false" and "true" to bool
anywhere in Phobos.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list