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

SCM Repository

[diderot] Annotation of /tests/rtest/tests/consts1/consts1.diderot
ViewVC logotype

Annotation of /tests/rtest/tests/consts1/consts1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5077 - (view) (download)

1 : jhr 5075 #version 2
2 :    
3 :     /* consts1.diderot
4 :     *
5 :     * Test overriding constant definitions from the command line
6 :     *
7 :     * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     *
9 :     * COPYRIGHT (c) 2017 The University of Chicago
10 :     * All rights reserved.
11 :     */
12 :    
13 :     const bool c1 = true;
14 :     const bool c2 = false;
15 :     const int c3 = 17;
16 : jhr 5077 const int c4;
17 : jhr 5075 /* TODO: strings, tensors, sequences */
18 :    
19 :     initialize {
20 :     print ("c1 = ", c1, "\n");
21 :     print ("c2 = ", c2, "\n");
22 :     print ("c3 = ", c3, "\n");
23 :     print ("c4 = ", c4, "\n");
24 :     }
25 :    
26 :     strand dummy () {
27 :     output int out = 0;
28 :     update { stabilize; }
29 :     }
30 :    
31 :     create_collection { dummy() | i in 1..1 }

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