Hallo Martin, Du schriebst am Tue, 12 Nov 2013 13:25:05 +0100:
> Here examples of the planned compound statements. Additional ';' after > statements are possible, they are treated as empty statements. Like with Pascal. > with rec1:r do > r.field1:= 123 > end; Does that suggest the Oberon "with", where you create a local alias variable for field access? > if a = 1 then > b:= 1 > end; So you decided to absorb the block lead-ins into other structure elements, obviously? > case a of > 1: > b:= 10 > 2: > b:= 15 > else > b:= 0 > end; And with multiple statements _within_ a case? Like so: case a of 1: a:= 10; b:= 15 2: a:= 15; b:= 10 ... end; or rather this way: case a of 1: a:= 10; b:= 15 end; 2: a:= 15; b:= 10 end; ... end; > repeat > b:= b * 2; > a:= a + 1 > until a > 4; You _could_ do away with this by simply "inverting" the while: do b:= b * 2; a:= a + 1 while a <= 4; Not that I would want to suggest that you _should_ do this... > for a in 0..13 do > b:= b + ar[a] > end; //loop variable is readonly in loop and valid after loop Scoping? Any visible / enclosing block locals only? (And I sure hope you'll admit arbitrary range bounds!) > if c >= 0 then //I am not happy with that additional check > for a in 0..c do What should it effect? Make sure this is an ascending loop? How'd you specify a descending loop with varaible bounds then? And what about loop ranges specified with _two_ variables? Using this syntax, you _cannot_ in advance specify the increment direction, the code has to be prepared for both. The programmer writing the statement has to make sure it only runs a intended, then. As designed? ;-) > Opinions? As above. -- -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

