Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/resolved/bug002.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/resolved/bug002.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2150 - (view) (download)

1 : glk 2146 /****************
2 :     Compiling this program gives:
3 :     [sqr-bug02.diderot:22.32-38] Error: undeclared variable 'foobar'
4 :     uncaught exception Fail [Fail: Error in compiling sqr-bug02.diderot]
5 :     raised at common/phase-timer.sml:76.50-76.52
6 :     raised at common/phase-timer.sml:76.50-76.52
7 :     raised at driver/main.sml:27.39-27.76
8 :    
9 :     So there is both the "Error" and the "Fail".
10 :     When there is a descriptive Error message, why have
11 :     all the uncaught exception stuff?
12 :    
13 :     ****************/
14 :    
15 :     real eps = 1.0;
16 :     strand sqroot(real val) {
17 :     output real root = val;
18 :     update {
19 :     root = (root + val/root)/2;
20 :     if (|root^2 - val|/val < foobar)
21 :     stabilize;
22 :     }
23 :     }
24 :     // Strand initialization
25 :     initially { sqroot(i) | i in 1..1000 };

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0