digitalmars.D - const as per popular demand
- Carlos Santander <csantander619 gmail.com> Sep 14 2007
- "Janice Caron" <caron800 googlemail.com> Sep 14 2007
- Regan Heath <regan netmail.co.nz> Sep 14 2007
- "Janice Caron" <caron800 googlemail.com> Sep 14 2007
- Brad Roberts <braddr puremagic.com> Sep 14 2007
- Carlos Santander <csantander619 gmail.com> Sep 14 2007
- charles <charlie d.com> Sep 15 2007
First, let me say that I haven't finished reading all those const posts. I still have 129 to go. What made me remember this was a post by Steven Schveighoffer where he asked "what's wrong with mutable?" Three months ago there was a poll here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=54361 Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens? I'll go back now to try to catch up. TGIF! -- Carlos Santander Bernal
Sep 14 2007
On 9/14/07, Carlos Santander <csantander619 gmail.com> wrote:Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens?
It's not on offer.
Sep 14 2007
Janice Caron wrote:On 9/14/07, Carlos Santander <csantander619 gmail.com> wrote:Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens?
It's not on offer.
Neither is shared, readable, writable :P
Sep 14 2007
On 9/14/07, Regan Heath <regan netmail.co.nz> wrote:Neither is shared, readable, writable :P
Nice! :-) Well, I certainly can't argue with that. However, I hope you recall that Walter said: "There is no way to specify a (pointer to)(const pointer to)(mutable int)." Those keywords you mentioned were at least an attempt to workaround the restrictions of const transitivity. Whereas, const-by-default, though a very nice idea, is not likely to help in that regard.
Sep 14 2007
On Fri, 14 Sep 2007, Carlos Santander wrote:First, let me say that I haven't finished reading all those const posts. I still have 129 to go. What made me remember this was a post by Steven Schveighoffer where he asked "what's wrong with mutable?" Three months ago there was a poll here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=54361 Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens? I'll go back now to try to catch up. TGIF! -- Carlos Santander Bernal
The debate about the default state is irrelevant until the meaning of the state is actually agreed upon, or atleast an implementation is set that is likely to stick around. In other words, default to what sort of const? Now, back to the regularly scheduled lack of agreements on what sorts of constantness should exist. Later, Brad
Sep 14 2007
Brad Roberts escribió:On Fri, 14 Sep 2007, Carlos Santander wrote:First, let me say that I haven't finished reading all those const posts. I still have 129 to go. What made me remember this was a post by Steven Schveighoffer where he asked "what's wrong with mutable?" Three months ago there was a poll here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=54361 Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens? I'll go back now to try to catch up. TGIF! -- Carlos Santander Bernal
The debate about the default state is irrelevant until the meaning of the state is actually agreed upon, or atleast an implementation is set that is likely to stick around. In other words, default to what sort of const?
Sigh, guess you're right...Now, back to the regularly scheduled lack of agreements on what sorts of constantness should exist. Later, Brad
-- Carlos Santander Bernal
Sep 14 2007
Good try though! Carlos Santander wrote:Brad Roberts escribió:On Fri, 14 Sep 2007, Carlos Santander wrote:First, let me say that I haven't finished reading all those const posts. I still have 129 to go. What made me remember this was a post by Steven Schveighoffer where he asked "what's wrong with mutable?" Three months ago there was a poll here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmar .D&article_id=54361 Mostly everyone agreed to be willing to at least try const by default. If we all are in the trying-stuff bandwagon, why can't we try that and just see what happens? I'll go back now to try to catch up. TGIF! -- Carlos Santander Bernal
The debate about the default state is irrelevant until the meaning of the state is actually agreed upon, or atleast an implementation is set that is likely to stick around. In other words, default to what sort of const?
Sigh, guess you're right...Now, back to the regularly scheduled lack of agreements on what sorts of constantness should exist. Later, Brad
Sep 15 2007









Regan Heath <regan netmail.co.nz> 