guile-user
[Top][All Lists]
Advanced

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

Is (catch #t (lambda () (use-modules (xxx))) ...) OK?


From: Rob Browning
Subject: Is (catch #t (lambda () (use-modules (xxx))) ...) OK?
Date: 12 Apr 2001 14:38:39 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Is this an effective way to test for the existence of a module, and if
so, will a second (use-modules ...)  be required to actually get an
effect on the top-level envt?  i.e.

  (if (catch #t (lambda () (use-modules (xxx)) #t)
                (lambda (key . args) #f))
    (use-modules xxx)
    (do-something-else ...))

or is the use-modules inside the catch sufficient?

Thanks

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

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