aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-21 23:53:20 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 11:33:05 +0800
commit29da069bf02e669c019d6fa136df994bc8ef6d72 (patch)
tree85e19007b02fd1a1876736d0084d31ff0b3d709e /docs
parentad5cd215712d6baea82805a46ba17a6f063564df (diff)
downloaddexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar.gz
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar.bz2
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar.lz
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar.xz
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.tar.zst
dexon-solidity-29da069bf02e669c019d6fa136df994bc8ef6d72.zip
Do not require parentheses on function return values
Diffstat (limited to 'docs')
-rw-r--r--docs/julia.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/julia.rst b/docs/julia.rst
index c0e0c97a..29970bd6 100644
--- a/docs/julia.rst
+++ b/docs/julia.rst
@@ -30,7 +30,7 @@ and ``mod`` are available either natively or as functions and computes exponenti
.. code::
{
- function power(base:u256, exponent:u256) -> (result:u256)
+ function power(base:u256, exponent:u256) -> result:u256
{
switch exponent
case 0:u256: { result := 1:u256 }
@@ -51,7 +51,7 @@ and ``add`` to be available.
.. code::
{
- function power(base:u256, exponent:u256) -> (result:u256)
+ function power(base:u256, exponent:u256) -> result:u256
{
result := 1:u256
for { let i := 0:u256 } lt(i, exponent) { i := add(i, 1:u256) }
@@ -79,7 +79,7 @@ Grammar::
SubAssembly
FunctionDefinition =
'function' Identifier '(' IdentifierList? ')'
- ( '->' '(' IdentifierList ')' )? Block
+ ( '->' IdentifierList )? Block
VariableDeclaration =
'let' IdentifierOrList ( ':=' Expression )?
Assignment =
@@ -250,10 +250,10 @@ JULIA has no support for implicit type conversion and therefore functions exists
When converting a larger type to a shorter type a runtime exception can occur in case of an overflow.
The following type conversion functions must be available:
-- ``u32tobool(x:u32) -> (y:bool)``
-- ``booltou32(x:bool) -> (y:u32)``
-- ``u32tou64(x:u32) -> (y:u64)``
-- ``u64tou32(x:u64) -> (y:u32)``
+- ``u32tobool(x:u32) -> y:bool``
+- ``booltou32(x:bool) -> y:u32``
+- ``u32tou64(x:u32) -> y:u64``
+- ``u64tou32(x:u64) -> y:u32``
- etc. (TBD)
Low-level Functions