digitalmars.D - const as per popular demand
- Carlos Santander (11/11) Sep 14 2007 First, let me say that I haven't finished reading all those const posts....
- Janice Caron (2/4) Sep 14 2007 It's not on offer.
- Regan Heath (2/7) Sep 14 2007 Neither is shared, readable, writable :P
- Janice Caron (8/9) Sep 14 2007 Nice! :-)
- Brad Roberts (8/24) Sep 14 2007 The debate about the default state is irrelevant until the meaning of th...
- Carlos Santander (4/32) Sep 14 2007 --
- charles (2/41) 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:Neither is shared, readable, writable :PMostly 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
On 9/14/07, Regan Heath <regan netmail.co.nz> wrote:Neither is shared, readable, writable :PNice! :-) 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 BernalThe 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:Sigh, guess you're right...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 BernalThe 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-- Carlos Santander Bernal
Sep 14 2007
Good try though! Carlos Santander wrote:Brad Roberts escribió:On Fri, 14 Sep 2007, Carlos Santander wrote:Sigh, guess you're right...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 BernalThe 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 15 2007