SCM Repository
View of /branches/vis12/bugs/resolved/bug005.diderot
Parent Directory
|
Revision Log
Revision 3291 -
(download)
(annotate)
Wed Oct 14 21:25:00 2015 UTC (6 years, 8 months ago) by jhr
File size: 746 byte(s)
Wed Oct 14 21:25:00 2015 UTC (6 years, 8 months ago) by jhr
File size: 746 byte(s)
code is copyright University of Chicago
/*! \file bug005.diderot * * \author John Reppy */ /* * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu) * * COPYRIGHT (c) 2015 The University of Chicago * All rights reserved. */ /* this fails to compile because the parameter name for id is the same as an already declared * global. * * % ../../bin/diderotc --exec bug005.diderot * [bug005.diderot:3.19-25] Error: redefinition of 'x', previous definition at [bug005.diderot:1.1-2.0] * * we should allow this redefinition, since the parameter list is a new scope (do we want a warning?) */ real x = 1.0; function real id (real x) = x; strand Dummy () { output int out = 1; update { stabilize; } } initially { Dummy() | i in 1..2 };
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |