Not logged inOpenClonk Forum
Up Topic Some small C4Script design issues

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther
Should we have
foo = bar;
in addition to
local foo = bar;
as toplevel declarations? (both would initialize the property foo of the definition to which the script belongs to bar.)

Should
  var a = [1, 2, 3]; a[-4];
throw or return nil? (a[-3] return 1, a[-1] returns 3.)

Should
  var a = []; a[3];
increase the array length, or should one have to do a[3]=nil;? (It could also throw, but that wouldn't be helpful.)

Opinions? Justified opinions?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill