C++ const expression are not that const after all

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 28 15:25:10 PDT 2015


On 4/28/15 5:45 PM, H. S. Teoh via Digitalmars-d wrote:
> On Tue, Apr 28, 2015 at 01:56:01PM -0700, Walter Bright via Digitalmars-d wrote:
>> On 4/28/2015 8:16 AM, bearophile wrote:
>>> Luc Bourhis:
>>>
>>>> The author of that blog seems to see his finding in a
>>>> positive light actually. As it makes it possible to write
>>>> more powerful template metaprograms!
>>>
>>> One of the essences of modern languages is to restrict the power of
>>> the programmer in specific parts, to reduce unwanted interactions and
>>> make complexity more manageable. His finding seems a design mistake.
>>
>> Most languages suffer from quirky, unexpected behaviors from
>> interactions between otherwise sensible features. The awful thing,
>> though, is programmers discover these things and then build a store
>> around them, making it impossible to fix those quirks.
>
> Are you certain D doesn't suffer from the same problem? ;-)

What? You haven't visited the @property store yet?

-Steve



More information about the Digitalmars-d mailing list