Answering my own question ...

It seems that there is provision for a "user startup file", user.clj.
Maybe that's where I should have put my mods?

Oh and I've seen other (previous) answers to this (exit) -- that must
be a FAQ, except that I couldn't find the FAQ :-( -- with a nicer

(defn exit
        "Returns to the OS by forcibly exiting the platform"
        ([& code]  (. System exit (or code 0))))

Still puzzled as to why boot.clj needs to be passed as argument from
the command line, since it seems loaded anyway, seemingly from
clojure.jar ...
--
JFB


On Oct 4, 10:02 pm, verec <[EMAIL PROTECTED]>
wrote:
> OK. That one with trivial to add :-)
>
> (defn exit
>         "Returns to the OS by forcibly exiting the platform"
>         ([]  (. System exit 0))
>         ([n] (. System exit n)))
>
> Added inside boot.clj, right before
>
> (import '(java.io Writer))
>
> (defn- print-sequential [#^String begin, print-one, #^String sep,
> #^String end, sequence, #^Writer w]
>
> around line 3400 or so (SVN trunk version as of Oct 4th)
>
> Is that
> - the correct way to define it?
> - the right place to put it?
>
> Also, I'm a bit confused as to the exactly when boot.clj is loaded:
>
> The ant build file and the docs suggest that boot.clj should be passed
> as a command line argument when invoking clojure, yet it seems that
> that very same boot.clj is compiled as part of clojure.jar and
> accessed directly from RT.doInit() ...
>
> Anyone cares to shed some light?
>
> Many Thanks
>
> --
> JFB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

  • (exit) verec
    • Re: (exit) verec

Reply via email to