manpagez: man pages & more
info bigloo
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

26.4.7 Bigloo runtime customization

When the Scheme program completes normally, that is when the last expression of the Bigloo main is executed without error, the Bigloo runtime system explicitly call the Java function System.exit. In some situation, it may be useful to disable this call. For this, one must set the boolean Java static variable bigloo.foreign.must_exitp to false. This can be implemented in Java or in Scheme. Here is a Scheme module that sets the variable to false.

 
(module no-exit
  (java (class bigloo
           (field static must-exitp::bool "must_exitp")
           "bigloo.foreign")))

(cond-expand
  (bigloo-jvm (set! bigloo-must-exitp #f)))

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.