On Tuesday, 26 March 2013 at 14:10:56 UTC, Jacob Carlborg wrote:
On 2013-03-26 14:07, Lars T. Kyllingstad wrote:
If this gets added *before* the new std.process, we should at
least
agree on a consistent naming convention. The new std.process
has
@property thisProcessID(), which replaces getpid(), and which
is
somewhat consistent with std.concurrency.thisTid. I also think
std.file.getcwd() is part of this function family, and that it
should be
moved to std.process (under a different name).
Personally, I dislike function names that start with "get".
so what would you prefer, "thisProcessPath"? Or
thisExecutablePath, perhaps?
Something like that, with @property. thisProcessExecutable is
also an option, but it's rather long. I think I prefer
thisExecutablePath.
Lars