How do I generate `setX` methods for all private mutable variables in a class?

Ali Çehreli acehreli at yahoo.com
Tue Jun 6 17:13:29 UTC 2023


On 6/6/23 09:13, Basile B. wrote:

 > yeah I know that opDispatch is disliked because it is tried in a SFINAE
 > fashion, as citicized by Adam. But on the other side it's the best 
opover.

I like how it helped in my current project:

   user.someShellCommand("-foo", "-bar");

opDispatch makes a command string, passes it to executeShell, takes care 
of the return code and dumps its output if there was an error.

Ali



More information about the Digitalmars-d-learn mailing list