Feature Request: make void a value type -- so happy

downs default_357-line at yahoo.de
Mon Dec 3 13:44:13 PST 2007


Jarrett Billingsley wrote:
> 
> You need to try things!
> 
> void f()
> {
>     writefln("f!");
> }
> 
> void g()
> {
>     return f();
> }
> 
> void main()
> {
>     g();
> }
> 
> Works just fine. 
> 
> 

OMGSQUEE!!!!!
Thanks! I think this used to not work at some point and then got fixed or so but anyway it works! HAPPIES!!
 --happydowns



More information about the Digitalmars-d mailing list