Implementing std.log

Sean Kelly sean at invisibleduck.org
Wed May 11 15:09:42 PDT 2011


On May 11, 2011, at 11:38 AM, Jacob Carlborg wrote:

> On 2011-05-10 16:41, Andrei Alexandrescu wrote:
>> On 5/10/11 3:22 AM, Jacob Carlborg wrote:
>>> Are you referring to core.runtime.Runtime.args? That is not completely
>>> reliable because:
>>> 
>>> * You can start a new process, with exec, and then pass in whatever you
>>> want as the first argument to the process.
>>> 
>>> * If you start an application via a symlink wouldn't that refer to the
>>> symlink instead of the actual executable?
>>> 
>>> * Also if you're running an application in a bundle on Mac OS X it would
>>> refer to the bundle and not the actual executable, if I recall correctly.
>> 
>> I see. I'll defer ultimate decision on adding getProcessPath to Sean and
>> Walter. Probably with a little experimentation to clarify motivation,
>> getProcessPath is a worthy addition.
> 
> Sean, Walter, is this worth including?

Yes.  Not sure where it should live though.


More information about the Digitalmars-d mailing list