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

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/open/bug018.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/open/bug018.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2545 - (view) (download)

1 : jhr 2545 // TODO: name mangle
2 : glk 2223
3 :     // BUG: have to somehow handle (either by name-mangling or
4 :     // out-right disallowing) use of C keywords as variable names;
5 :     // e.g. case, switch, float, sizeof, static
6 :     // http://en.wikipedia.org/wiki/C_syntax#Reserved_keywords
7 :    
8 :     strand foo (int ii) {
9 :     output real bar = 0;
10 :     /* (un-comment one of the following pairs of statements) */
11 :    
12 :     int case = 10;
13 :     int jj = case;
14 :    
15 :     /*
16 :     int switch = 10;
17 :     int jj = switch;
18 :     */
19 :     /*
20 :     int float = 10;
21 :     int jj = float;
22 :     */
23 :     /*
24 :     int sizeof = 10;
25 :     int jj = sizeof;
26 :     */
27 :     /*
28 :     int static = 10;
29 :     int jj = static;
30 :     */
31 :    
32 :     update {
33 :     print (jj, "\n");
34 :     stabilize;
35 :     }
36 :     }
37 :    
38 :     initially [ foo(ii) | ii in 1..1 ];
39 :    

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