On Wed, Feb 8, 2017 at 12:13 PM, Alexander Burger <a...@software-lab.de> wrote:
>> I'm thinking of Python's `if __name__ == '__main__' and Perl's unless
>> (caller) {...}
> I don't know Python and Perl well enough. But perhaps 'once' is what you think
> of?
>    (once (load "xxx.l"))

No, it's different.

In Python there's a «magic» variable named __name__.
As files can be:
- imported from another script/module
- interpreted directly from top leve
it provides a trick to distinguish between those two ways to use a
See here:

UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to