www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14924] New: Error in std.uri definition/description


          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 puremagic.com
          Reporter: s_dlang_bugzilla asylum.id.au


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.

Aug 15 2015