[gecode-users] SetVar::init private?

Denys Duchier denys.duchier at univ-orleans.fr
Tue May 25 20:19:39 CEST 2010


Guido Tack <tack at gecode.org> writes:

> No, I just didn't see why it's necessary to have the methods since you can do
>
> SetVarArray x(home,n);
> for (int i=n; i--;)
>   x[i] = SetVar(home,...)

(lightbulb appears over my head) damn... I didn't realize you could do
that! thanks!

but, regardless, I think the APIs ought to be as uniform as possible
(principle of least surprise).  thanks for adding this in trunk.

--Denys



More information about the users mailing list