[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Equivalent for Python's __name__?
From: |
Alan Post |
Subject: |
Re: [Chicken-users] Equivalent for Python's __name__? |
Date: |
Thu, 3 Mar 2011 09:54:37 -0700 |
On Thu, Mar 03, 2011 at 05:50:26PM +0100, Thomas Chust wrote:
> 2011/3/3 Andrew Pennebaker <address@hidden>:
> > I'd like to find out my Chicken script name programmatically.
> > [...]
>
> Hello Andrew,
>
> program-name [1] is a built in parameter exported from the chicken
> library unit that returns the name of the currently executing program
> or script.
>
> Ciao,
> Thomas
>
>
> [1] http://wiki.call-cc.org/man/4/Parameters#program-name
>
>
\o/
TIL.
-Alan
--
.i ma'a lo bradi ku penmi gi'e du