[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Microlight (was Re: paving cowpaths with libraries)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 20 Feb 2012 13:55:52 +0200
Op 20 februari 2012 13:32 schreef steve donovan <steve.j.donovan@gmail.com> het volgende:
The Set class is about 20 lines; does it go in too? Currently s1+s2
means union, and s1*s2 means intersection; we still have a few
operators left to overload! Unfortunately, we don't have += etc
available as overloads.
Well, how about s1<s2 (proper subset), s1<=s2 (normal subset) etc? s1-s2 for "elements of s1 not in s2"? Idiom (s1-s2)+(s2-s1) for symmetric difference. And don't forget #s!