Recursive function call

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 24 05:37:15 PDT 2014


On Wednesday, 24 September 2014 at 10:57:27 UTC, Suliman wrote:
> string getFileName()
> {
[...]
> 		getFilename(); //I need something similar, to call function 
> again.

You mistyped the function name, it's getFileName (capital N), and
you forgot "return". So:

return getFileName();


More information about the Digitalmars-d-learn mailing list