Re: Declarative constraints in practical terms

From: Bob Hairgrove <invalid_at_bigfoot.com>
Date: Sun, 26 Feb 2006 18:09:48 +0100
Message-ID: <41o302p5t8ba3vh296u8l5h0k5o55jjttm_at_4ax.com>


On 26 Feb 2006 09:00:44 -0800, "Marshall Spight" <marshall.spight_at_gmail.com> wrote:

>One thing I've been wishing for for a
>while now is a programming language with a much more
>powerful way to declare static properties.

C++ templates can do this. These can be used to implement trait classes and policy classes which are enforced at compile-time. Check out "Modern C++ Design" by Andrei Alexandrescu and his Loki library as well as everything over at:

 http://www.boost.org

--
Bob Hairgrove
NoSpamPlease_at_Home.com
Received on Sun Feb 26 2006 - 18:09:48 CET

Original text of this message