Is returning void functions inside void functions a feature or an artifact?
    Rekel 
    paultjeadriaanse at gmail.com
       
    Mon Aug  2 14:31:45 UTC 2021
    
    
  
I recently found one can return function calls to void functions, 
though I don't remember any documentation mentioning this even 
though it doesn't seem trivial.
```d
void print(){
	writeln("0");
}
void doSomething(int a){
	if (a==0)
		return print();
	writeln("1");
}
void main(string[] args) {
	doSomething(0); // Prints 0 but not 1.
}
```
If this is intended, where could I find this in the docs? I 
haven't been able to find previous mentions on this, neither on 
the forum.
    
    
More information about the Digitalmars-d-learn
mailing list