Promote "echo" syntax without parenthesis
This commit is contained in:
parent
4246f660ea
commit
cd574d1976
7 changed files with 93 additions and 93 deletions
|
|
@ -15,15 +15,15 @@ Example:
|
|||
try:
|
||||
var a = readLine(f)
|
||||
var b = readLine(f)
|
||||
echo("sum: " & $(parseInt(a) + parseInt(b)))
|
||||
echo "sum: " & $(parseInt(a + parseInt(b)))
|
||||
except OverflowError:
|
||||
echo("overflow!")
|
||||
echo "overflow!"
|
||||
except ValueError:
|
||||
echo("could not convert string to integer")
|
||||
echo "could not convert string to integer"
|
||||
except IOError:
|
||||
echo("IO error!")
|
||||
echo "IO error!"
|
||||
except:
|
||||
echo("Unknown exception!")
|
||||
echo "Unknown exception!"
|
||||
finally:
|
||||
close(f)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue