Jump to page: 1 213  
Page
Thread overview
D const design rationale
Jun 21, 2007
Walter Bright
Jun 21, 2007
eao197
Jun 21, 2007
BLS
Jun 21, 2007
Daniel919
Jun 21, 2007
torhu
Jun 21, 2007
Myron Alexander
Jun 21, 2007
Dejan Lekic
Jun 21, 2007
Craig Black
Jun 21, 2007
Carlos Santander
Jun 21, 2007
Walter Bright
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Walter Bright
Jun 22, 2007
Martin Howe
Jun 22, 2007
BCS
Jun 24, 2007
Christopher Wright
Jun 24, 2007
Martin Howe
Jun 24, 2007
Martin Howe
Jun 22, 2007
Leandro Lucarella
Jun 22, 2007
Frits van Bommel
Jun 22, 2007
Daniel Keep
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Daniel Keep
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Walter Bright
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Daniel Keep
Jun 22, 2007
Lars Ivar Igesund
Jun 22, 2007
Sean Kelly
Jun 23, 2007
Daniel Keep
Jun 23, 2007
Sean Kelly
Jun 23, 2007
Bruno Medeiros
Jun 22, 2007
Walter Bright
Jun 22, 2007
Carlos Santander
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Bill Baxter
Jun 22, 2007
Walter Bright
Jun 22, 2007
Sean Kelly
Jun 22, 2007
Walter Bright
Jun 23, 2007
Sean Kelly
Jun 23, 2007
Walter Bright
Jun 23, 2007
Reiner Pope
Jun 23, 2007
Martin Howe
Jun 23, 2007
Deewiant
Jun 23, 2007
Lutger
Jun 23, 2007
Deewiant
Jun 23, 2007
Walter Bright
Jun 24, 2007
eao197
Jun 26, 2007
Walter Bright
Jun 23, 2007
Sean Kelly
Jun 23, 2007
Walter Bright
Jun 23, 2007
Sean Kelly
Jun 26, 2007
Walter Bright
Jun 23, 2007
Bruno Medeiros
Jun 23, 2007
Derek Parnell
Jun 24, 2007
Sean Kelly
Jun 24, 2007
Bruno Medeiros
Jun 23, 2007
Derek Parnell
Jun 24, 2007
Sean Kelly
Jun 24, 2007
Bill Baxter
Jun 24, 2007
Sean Kelly
Jun 24, 2007
Bill Baxter
Jun 24, 2007
Deewiant
Jun 24, 2007
Lars Ivar Igesund
Jun 23, 2007
Don Clugston
Jun 24, 2007
Bill Baxter
Jun 24, 2007
Kristian Kilpi
Jun 24, 2007
Sean Kelly
Jun 24, 2007
Kristian Kilpi
Jun 24, 2007
Frits van Bommel
Jun 24, 2007
Reiner Pope
Jun 23, 2007
Bill Baxter
Jun 23, 2007
Walter Bright
Jun 24, 2007
Bill Baxter
Jun 26, 2007
Walter Bright
Jun 26, 2007
Daniel Keep
Jun 26, 2007
Walter Bright
interpreted vs. compiled
Jun 27, 2007
Bill Baxter
Jun 29, 2007
Brad Anderson
Jun 29, 2007
Kristian Kilpi
Jun 29, 2007
Thomas Kuehne
Jun 27, 2007
Kirk McDonald
Jun 27, 2007
Dave
Re: D const design rationale (GUIs)
Jun 30, 2007
Charlie
Jun 26, 2007
BCS
Jun 26, 2007
Bill Baxter
Jun 24, 2007
Dave
Jun 23, 2007
James Dennett
Jun 22, 2007
Robert Fraser
Jun 23, 2007
James Dennett
Jun 23, 2007
Walter Bright
Jun 23, 2007
BLS
Jun 23, 2007
Walter Bright
Jun 23, 2007
OF
Jun 26, 2007
Walter Bright
Jun 26, 2007
Jeff Nowakowski
Jun 26, 2007
Oskar Linde
Jun 26, 2007
Walter Bright
Jun 26, 2007
Derek Parnell
Jun 26, 2007
Walter Bright
Jun 26, 2007
Oskar Linde
Jun 27, 2007
Lars Ivar Igesund
Jun 27, 2007
Robert Fraser
Jun 27, 2007
Sean Kelly
Jul 01, 2007
Bruno Medeiros
Jun 27, 2007
Sean Kelly
Jun 27, 2007
Sean Kelly
Jun 27, 2007
Robert Fraser
Jun 27, 2007
Derek Parnell
Jun 23, 2007
Reiner Pope
Jun 23, 2007
Bruno Medeiros
Jun 23, 2007
Derek Parnell
D chaos
Jun 24, 2007
Peter Modzelewski
Jun 24, 2007
Sean Kelly
Jun 24, 2007
Kristian Kilpi
Jun 25, 2007
Jascha Wetzel
Jun 25, 2007
Jason House
Jun 27, 2007
Christian Kamm
Jun 22, 2007
Don Clugston
Jun 22, 2007
Deewiant
Jun 22, 2007
Don Clugston
Jun 22, 2007
Walter Bright
Jun 22, 2007
Bill Baxter
Jun 23, 2007
Bruno Medeiros
Jun 23, 2007
Manfred Hansen
Jun 23, 2007
eao197
June 21, 2007
http://www.digitalmars.com/d/const.html
June 21, 2007
On Thu, 21 Jun 2007 10:36:12 +0400, Walter Bright <newshound1@digitalmars.com> wrote:

> http://www.digitalmars.com/d/const.html

Thanks for the article!

Small typo in C++ example: const_cast needs type in angle brackets:

void foo(const int *p)
{
    int *q = const_cast< int * >(p);
    *q = 4;
}

-- 
Regards,
Yauheni Akhotnikau
June 21, 2007
Walter Bright schrieb:
> http://www.digitalmars.com/d/const.html

THANK YOU ! Just speaking for myself : I have learned a lot.The article is very clear and understandable.
(should be nominated for the "Art of technical writing award")
Well done folks.
Bjoern
June 21, 2007
Great article !
Shows the weaknesses of C++'s const implementation and
points out D's improvements and advantages.
Very attractive and easy to understand !

Also the need for having 3 different keywords should be clear now.


PS:
http://www.digitalmars.com/d/const.html
Articles has a link for it (at the top)

http://www.digitalmars.com/d/index.html
There the link to it under Articles is missing.
June 21, 2007
Walter Bright wrote:
> http://www.digitalmars.com/d/const.html

Hello Walter.

Thanks, a very interesting read. I think the only missing element is a discussion, and example, of the invariant keyword, and how it differs from const. I know you have it explained in this page (http://www.digitalmars.com/d/final-const-invariant.html) but since you mention final, and in the C++ portion you talk about the problems with C++ const that are solved by invariant but not const, then I believe it should be added to show how the "constness" hole is close.

Regards,

Myron.
June 21, 2007
An excellent article Mr. Bright. It certainly cleared some misunderstandings regarding new const/invariants in DMD 2.0.
June 21, 2007
Good article!  The link to the article currently doesn't appear on the main D page http://www.digitalmars.com/d/  I've browsed some of the other pages and it doesn't appear there either.

-Craig


June 21, 2007
Walter Bright escribió:
> http://www.digitalmars.com/d/const.html

Thanks!

-- 
Carlos Santander Bernal
June 21, 2007
Daniel919 wrote:
> 
> PS:
> http://www.digitalmars.com/d/const.html
> Articles has a link for it (at the top)
> 
> http://www.digitalmars.com/d/index.html
> There the link to it under Articles is missing.

The link is there now.  If you don't see it, press F5.
June 21, 2007
Carlos Santander wrote:
> Walter Bright escribió:
>> http://www.digitalmars.com/d/const.html
> 
> Thanks!

Welcs! Just for fun, I posted it on http://programming.reddit.com/

« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10 11