"BCS" <[email protected]> wrote in message 
news:[email protected]...
>>
>> ts.fromSeconds = 30; // WTF is that supposed to mean?!? But it
>> compiles anyway!
>>
>
> One option would be to only allow that fn = v syntax where fn returns 
> void.
>

That still doesn't plug all the holes. Just because a function takes one 
argument and returns void still doesn't necessarily imply that it does 
something that could be reasonably considered "setting".

---------
Stdout.formatln = "Hello"; // Still doesn't make much sense
---------
class Foo
{
    // Complex set of private data members here

    void MutateFooInPlace(bool optionA)
    {
        // Do some sort of fancy in-place mutation of Foo
        // "optionA" is some sort of algorithm-adjusting option.
    }
}
auto f = new Foo();
f. MutateFooInPlace = false; // Even worse!
---------


Reply via email to