From: Jérémie Astor Date: Wed, 16 Sep 2020 21:58:00 +0000 (+0200) Subject: Update declaration.mdr X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9e17277ead688ba6276612d04a48c5c28816aed9;p=gwion.git Update declaration.mdr --- diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index d4666ce1..db9df039 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -13,11 +13,10 @@ Object o; ## Declaring a reference @``` decl1.gw -Object ref ref; -<<< "Reference points to no object yet: ", ref >>>; -#!Object o @=> ref; -new Object @=> ref; -<<< "But now it does: ", ref >>>; +Object ref object_ref; +<<< "Reference points to no object yet: ", object_ref >>>; +new Object @=> object_ref; +<<< "But now it does: ", object_ref >>>; @``` @hide make -s decl1.test @@ -26,9 +25,9 @@ new Object @=> ref; ### array as refs @``` decl2.gw -int ref[]; -<<< ref >>>; -new int[2] @=> ref; -<<< ref >>>; +int array_ref[]; +<<< array_ref >>>; +new int[2] @=> array_ref; +<<< array_ref >>>; @``` @hide make -s decl2.test