Changeset 3910

Show
Ignore:
Timestamp:
07/01/09 05:20:04 (5 months ago)
Author:
sukyoungryu
Message:

[demos] Fixed demos/newtictactoe.fss to bail out when an exception occurs.

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/Emacs/fortress-mode.el

    r3900 r3910  
    22;;; fortress-mode.el - Fortress mode for Emacs 
    33;;; 
    4 ;;;   Copyright (c) 2007 Yuto Hayamizu (y.hayamizu[at]gmail.com) 
     4;;;   Copyright 2009 Yuto Hayamizu (y.hayamizu[at]gmail.com) 
    55;;; 
    66;;;   Redistribution and use in source and binary forms, with or without 
  • trunk/ProjectFortress/compiler_tests/Compiled5.ba.fss

    r3909 r3910  
     1(******************************************************************************* 
     2    Copyright 2009 Sun Microsystems, Inc., 
     3    4150 Network Circle, Santa Clara, California 95054, U.S.A. 
     4    All rights reserved. 
     5 
     6    U.S. Government Rights - Commercial software. 
     7    Government users are subject to the Sun Microsystems, Inc. standard 
     8    license agreement and applicable provisions of the FAR and its supplements. 
     9 
     10    Use is subject to license terms. 
     11 
     12    This distribution may include materials developed by third parties. 
     13 
     14    Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered 
     15    trademarks of Sun Microsystems, Inc. in the U.S. and other countries. 
     16 ******************************************************************************) 
     17 
    118export Executable 
    219 
  • trunk/ProjectFortress/demos/newtictactoe.fss

    r3900 r3910  
    191191    name = readLine() 
    192192    println "What size board?" 
    193     N = strToInt(readLine()) 
    194     while playGame(name, N) do 
    195         println "" 
     193    try 
     194        N = strToInt(readLine()) 
     195        while playGame(name, N) do 
     196            println "" 
     197        end 
     198    catch e 
     199        IndexOutOfBounds[\ZZ32\] => 
     200            println "Invalid response." 
    196201    end 
    197202    println "Bye!" 
  • trunk/ProjectFortress/src/com/sun/fortress/numerics/DirectedRounding.java

    r3900 r3910  
    11/******************************************************************************* 
    2     Copyright 2008 Sun Microsystems, Inc., 
     2    Copyright 2009 Sun Microsystems, Inc., 
    33    4150 Network Circle, Santa Clara, California 95054, U.S.A. 
    44    All rights reserved.