SCM Repository
View of /branches/vis12/bugs/resolved/bug005.diderot
Parent Directory
|
Revision Log
Revision 2158 -
(download)
(annotate)
Mon Feb 18 17:10:19 2013 UTC (9 years, 3 months ago) by jhr
File size: 693 byte(s)
Mon Feb 18 17:10:19 2013 UTC (9 years, 3 months ago) by jhr
File size: 693 byte(s)
Fix the handling of function parameters to allow them to shadow previous declarations (bug005).
/*! \file bug005.diderot * * \author John Reppy */ /* * COPYRIGHT (c) 2013 The Diderot Project (http://diderot-language.cs.uchicago.edu) * 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 |