Re: sisc-1.10.0-alpha bug report

Matthias Radestock <[email protected]> Mon, 31 Jan 2005 22:27:27 +0000
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Thomas Fischbacher wrote:

>>>I think, it would be a good thing to make this script idempotent.
>>
>>Quite a few things loaded during the heap build can only be loaded 
>>during that phase. Making them all idempotent would be tedious and in 
>>some cases hard.
> 
> 
> Hm, how about a very simple solution along the following lines:
> 
> === bla.scm ===
> (if (not (member 'bla *features*))
>     (begin
>       (define *features* (cons 'bla *features*))
>       (display "BLA!\n")
>       (define (bla x)
> 	(cons x x))
>       ))
> ===============

Scheme files are not generally self-contained, let alone is their 
loading idempotent. So one generally cannot simply load any odd .scm 
file one comes across. I don't think that is a problem and hence I don't 
think it needs fixing.


Matthias.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl