From: Jérémie Astor Date: Wed, 1 Apr 2020 23:18:11 +0000 (+0200) Subject: :art: UPdate gwion syntax (@ becomes ref) X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a7cd3736b577bcd8d5815a83d61bcb84710d6ed2;p=gwion.git :art: UPdate gwion syntax (@ becomes ref) --- diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index c3cd7f82..9715be83 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -13,7 +13,7 @@ Object o; ## Declaring a reference @``` decl1.gw -Object @ref; +Object ref ref; <<< "Reference points to no object yet: ", ref >>>; #!Object o @=> ref; new Object @=> ref; diff --git a/docs/Reference/ControlFlow/forloop.mdr b/docs/Reference/ControlFlow/forloop.mdr index 0337296c..c9dafd35 100644 --- a/docs/Reference/ControlFlow/forloop.mdr +++ b/docs/Reference/ControlFlow/forloop.mdr @@ -51,11 +51,11 @@ If you want to change it the value in the array, you need a pointer int array[2][3]; int i; for(auto a: array) { - for(auto @b: a) + for(auto ref b: a) <<< ++i => *b >>>; } for(auto a: array) { - for(auto @b: a) + for(auto ref b: a) <<< *b >>>; } @```