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

SCM Repository

[diderot] View of /tests/vis12-bugs/src/bug005.diderot
ViewVC logotype

View of /tests/vis12-bugs/src/bug005.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 10 months ago) by glk
File size: 746 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
/*! \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