D-etractions A real world programmers view on D

Adam D. Ruppe destructionator at gmail.com
Wed Sep 5 11:43:13 PDT 2012


On Wednesday, 5 September 2012 at 18:22:16 UTC, Nick Sabalausky 
wrote:
>> * Have executing code in all level of scopes
> Not sure what sure mean by this?

In Javascript for instance, you don't need to use functions at 
all and can just write code that will run at the very top of the 
file.


Sometimes with D, I use a little helper program that adds some 
phobos imports and a void main(){} wrapper to the input, thus 
getting this same effect.


I don't like it in anything but short programs though... main() 
rox.


More information about the Digitalmars-d mailing list