Introducing vibe.d!
Sönke Ludwig
sludwig at outerproduct.org
Sun Apr 29 11:29:58 PDT 2012
Am 29.04.2012 15:22, schrieb Jacob Carlborg:
> On 2012-04-29 10:07, Sönke Ludwig wrote:
>
>> The static this() pattern is mainly there to appeal to users of similar
>> systems in script languages, where you don't have a main function at all
>> and just happily hack away. For larger projects it doesn't make a
>> difference but for small projects it can actually be quite convenient.
>
> Since you can't have code (besides declarations) at the module level I
> don't see how "static this" would be than "main".
>
You just don't have to care about how to parse command line arguments,
how to initialize the library and to start the event loop.
More information about the Digitalmars-d-announce
mailing list