Void function call
I'm not sure how much of a big deal this is, but when I do something akin to:
It works, but it gives me a void function call that seems out of place.
It doesn't seem like a big deal other than if I use it a lot it would spam quite a bit, but other than that this is just curiosity.
function this(%yes)
{
if(%yes)
return echo("Words");
}
It works, but it gives me a void function call that seems out of place.
It doesn't seem like a big deal other than if I use it a lot it would spam quite a bit, but other than that this is just curiosity.
Comments
function this(%yes) { if(%yes) echo("Words"); }echo("This"); return;And I like the one line better than that two line crap :-)
Again, doesn't really matter.
function this(%yes) { if(%yes) return call(echo,"Words"); else return call(error,"No Words"); }