[Issue 18229] New: Misleading documentation of std.process.environment.get

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 12 09:51:12 UTC 2018


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 at puremagic.com
          Reporter: chalucha at 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.

--


More information about the Digitalmars-d-bugs mailing list