On Sun, Apr 21, 2002 at 06:27:04AM +0900, Michael Brailsford wrote:
> The other idea is to provide a predefined entry point for classes.
> Something akin to C++ "int main()" or Java's "public static void
> main(String[] args)".  If this predefined entry point existed in a class
> in the script then after the file has been read the interpreter would
> run the class using that predefined method.  If it didn't exist then
> behavior would be what it is now.  
---end quoted text---

My english is not too good, but are you wanting something like:

if $0 == __FILE__ then
  main
end

?

-- 

Vincent Foley-Bourgon
Email: vinfoley / iquebec.com
Homepage: http://darkhost.mine.nu:81