making args global
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Apr 3 17:07:40 PDT 2012
On Tue, Apr 03, 2012 at 03:44:08PM -0700, Ali Çehreli wrote:
> On 04/03/2012 03:32 PM, jicman wrote:
[...]
> > How can I make args global?
[...]
> First, the general discouragement: Avoid global data. :)
>
> You can initialize a global variable upon entering main:
[...]
Technically that's a module variable. There's no such thing as global
scope in D. :-)
T
--
Bomb technician: If I'm running, try to keep up.
More information about the Digitalmars-d-learn
mailing list