[Issue 14924] New: Error in std.uri definition/description

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 15 17:18:35 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14924

          Issue ID: 14924
           Summary: Error in std.uri definition/description
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: s_dlang_bugzilla at asylum.id.au

dmd2.068.0

size_t defined as (from http://dlang.org/type.html): "size_t is an alias to one
of the unsigned integral basic types"

(i.e. size_t is unsigned)

Both uriLength and emailLength return size_t.
...but are supposed to return -1 if invalid 

Cannot use a test that uses "< 0".

Additionaly, dmd does not issue any warning when performing this test.

--


More information about the Digitalmars-d-bugs mailing list