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

SCM Repository

[diderot] Annotation of /branches/vis15/src/tests/new-tests/coerce-test.diderot
ViewVC logotype

Annotation of /branches/vis15/src/tests/new-tests/coerce-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (view) (download)

1 : jhr 4490 #version 2.0
2 :    
3 : jhr 3588 // test various coercion situations
4 :     //
5 :    
6 :     real[4] xs = {1, 1.5, 2, 2.4};
7 :     real[] ys = {1.2, 2, 4};
8 :    
9 :     strand S (real x') {
10 :     output real x = x';
11 :     int i = 1;
12 :    
13 :     update {
14 :     x = (x if true else i);
15 :     }
16 :     }
17 :    
18 : jhr 4497 create_collection { S(x+y) | x in xs, y in ys }

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