Simple overloading without complications

Adam Sansier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 12 09:30:05 PDT 2016


On Tuesday, 12 July 2016 at 16:03:15 UTC, Kagamin wrote:
> On Tuesday, 12 July 2016 at 13:44:02 UTC, Adam Sansier wrote:
>> I don't like it, creates an extra function for no apparent 
>> reason except to get around the problem of not having a yield 
>> type of semantic. Again, I wasn't asking for any ol' solution, 
>> there are many ways to skin this cat.
>
> It's a normal use case for private functions: the public 
> function prepares object state and delegates to the private 
> function that does the logic.

Doesn't matter, it's not what I asked. Trying to provide answers 
to a question that wasn't asked and was clearly stated I wasn't 
interested in those types of answers.



More information about the Digitalmars-d-learn mailing list