Finding the path to a executable?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sat Aug 10 21:45:43 PDT 2013


On Wed, 7 Aug 2013 10:06:19 -0700
"H. S. Teoh" <hsteoh at quickfur.ath.cx> wrote:

> On Wed, Aug 07, 2013 at 12:55:10PM -0400, Nick Sabalausky wrote:
> 
> > If it were up to me, args[0] would be eliminated outright.
> 
> Naw, there are some valid use cases for it. Take a look at busybox,
> for example. :)
> 

Hmm, interesting tool. And you're right, I can't think of a better way
than args[0] to do what it does.

In any case, Phobos needs to have this "get current executable's path"
function if it doesn't already.



More information about the Digitalmars-d mailing list