[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modules as scripts

From: Alex Schroeder
Subject: Re: modules as scripts
Date: Sun, 16 Sep 2001 19:26:41 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Alex Schroeder <address@hidden> writes:

> Maybe this is an inherent limitation -- something that is a module
> cannot run standalone?  I guess what I'm really looking for is
> something akin to Python's "if __name__=='__main__':" construct at the
> end of files.

Hm, I've rewritten the code such that file X.scm contains the module
definition and cannot be run from the command line, while run-X.scm
can be run from the command line and basically just uses the X module
and runs the main function.

Coffee should be black as hell, strong as death and sweet as love.
        -- Turkish proverb

reply via email to

[Prev in Thread] Current Thread [Next in Thread]