Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 6 and Version 7 of Lang/GettingStarted

Show
Ignore:
Author:
JarrettBillingsley (IP: 24.131.65.183)
Timestamp:
11/18/08 21:28:27 (15 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Lang/GettingStarted

    v6 v7  
    213213}}} 
    214214 
    215 So, most things that you'll be using in MDCL will be global.  When you declare functions, objects, or namespaces, they default to global; that's why the 'square' example worked before.  And if you need a global variable, you'll have to explicitly declare it first: 
     215So, most things that you'll be using in MDCL will be global.  When you declare functions, classes, or namespaces, they default to global; that's why the 'square' example worked before.  And if you need a global variable, you'll have to explicitly declare it first: 
    216216 
    217217{{{