Changes between Version 5 and Version 6 of Lang/Statements
- Timestamp:
- 11/18/08 21:32:28 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Lang/Statements
v5 v6 154 154 >>> 155 155 }}} 156 156 157 157 158 586 587 === Declaration Statements === 587 588 588 Declaration statements include variable, function, object, and namespace declarations. Right now, though, I'll only talk about variable declarations; the other three kinds of declarations will be covered later (and are really just sugar for variable declarations anyway!).589 Declaration statements include variable, function, class, and namespace declarations. Right now, though, I'll only talk about variable declarations; the other three kinds of declarations will be covered later (and are really just sugar for variable declarations anyway!). 589 590 590 591 There are two kinds of variables in MiniD: locals and globals. We've been using globals for a while now, mostly because in MDCL they're more useful. But when you're writing real code inside modules, more than likely you'll be using locals a lot more than globals.