www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18229] New: Misleading documentation of

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

          Issue ID: 18229
           Summary: Misleading documentation of
                    std.process.environment.get
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: chalucha gmail.com

It is stated: Unlike $(LREF environment.opIndex), this function never throws.
Here: https://github.com/dlang/phobos/blob/master/std/process.d#L3344

But the method is not nothrow and there is also:
Throws:
    $(REF UTFException, std,utf) if the variable contains invalid UTF-16
    characters (Windows only).

I'm not sure if at least for POSIX this can be marked as a nothrow or just
change the documentation.

--
Jan 12 2018