10/28/2011

Variable access changes


To improve is to change; to be perfect is to change often.
Winston Churchill

Alpha-2.9 was supposed to be released this weak, however I have decided to change a little thing about the way you can access variables. Instead of only using '?' for declarations, the question mark will now be used in front of all variables, similar to the PHP syntax.
For example, the following:
?greeting =~ "Hello!";
!out(~greeting, ~"\n");

Will now be written as:
?greeting =~ "Hello!";
!out(~?greeting, ~"\n");
I am aware of the fact that this is a big change that will affect almost all TBS code, although there should be no problem with this as alpha versions do not guarantee backwards compatibility.

No comments:

Post a Comment