Version bug?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 20 18:41:45 PDT 2010


As long as there is no ambiguity, right?

Some of this stuff is on the next page but I haven't read it yet. I
like how D handles modules, it  seems much better than C and
#includes. I only wish DMD could automatically do a build by passing
dmd main.d , and letting it worry about all the imports, etc. RDMD
seems it can do it, at least by looking at it's docs.

On Sat, Aug 21, 2010 at 3:32 AM, Jonathan M Davis <jmdavisprog at gmail.com> wrote:
> On Friday, August 20, 2010 18:05:16 Andrej Mitrovic wrote:
>> There are no global variables in D, afaik. But I haven't studied this
>> closely yet.
>>
>> On Sat, Aug 21, 2010 at 2:21 AM, Adam Ruppe <destructionator at gmail.com> wrote:
>> > Last message in a row, I promise.
>> >
>> > I just determined a work around for this - use a global variable.
>
> A public variable in a module is effectively a global variable. The same goes for
> a public static variable in a public class or public struct. They're scoped by
> the module/class/struct that they're in, but you can access them from anywhere.
>
> - Jonathan M Davis
>


More information about the Digitalmars-d mailing list