Jump to page: 1 2
Thread overview
Migrating to Shared
May 12, 2009
Walter Bright
May 12, 2009
The Anh Tran
May 12, 2009
Walter Bright
May 12, 2009
Leandro Lucarella
May 12, 2009
Walter Bright
May 12, 2009
Leandro Lucarella
May 12, 2009
Walter Bright
May 13, 2009
Robert Fraser
May 13, 2009
Simen Kjaeraas
May 12, 2009
Derek Parnell
May 14, 2009
Sean Kelly
May 12, 2009
I wrote a brief article which should help:

http://www.digitalmars.com/d/2.0/migrate-to-shared.html
May 12, 2009
Walter Bright wrote:
> I wrote a brief article which should help:
> 
> http://www.digitalmars.com/d/2.0/migrate-to-shared.html

Sir,

So immutable is an alias of invariant?
D now has 3 keywords that have somewhat similar meaning: const invariant immutable.

Thx.
May 12, 2009
The Anh Tran wrote:
> So immutable is an alias of invariant?
> D now has 3 keywords that have somewhat similar meaning: const invariant immutable.

By popular demand, the invariant keyword was replaced with immutable. Invariant will eventually go away.
May 12, 2009
Walter Bright, el 12 de mayo a las 10:59 me escribiste:
> The Anh Tran wrote:
> >So immutable is an alias of invariant?
> >D now has 3 keywords that have somewhat similar meaning: const invariant
> >immutable.
> 
> By popular demand, the invariant keyword was replaced with immutable. Invariant will eventually go away.

Better sooner than later. At least it would be nice if a deprecation warning is issued if invariant is used when immutable should go.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
May 12, 2009
Leandro Lucarella wrote:
> At least it would be nice if a deprecation
> warning is issued if invariant is used when immutable should go.

That'll happen.
May 12, 2009
On Tue, May 12, 2009 at 1:47 PM, Walter Bright <newshound1@digitalmars.com> wrote:
> I wrote a brief article which should help:
>
> http://www.digitalmars.com/d/2.0/migrate-to-shared.html
>

A couple typos:

// should be immutable int[3], no?
immutable table[3] x = [6, 123, 0x87];

// no type
__gshared x;
May 12, 2009
Jarrett Billingsley wrote:
> A couple typos:

Fixed.
May 12, 2009
Walter Bright, el 12 de mayo a las 11:19 me escribiste:
> Leandro Lucarella wrote:
> >At least it would be nice if a deprecation
> >warning is issued if invariant is used when immutable should go.
> 
> That'll happen.

Great! =)

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
May 12, 2009
On Tue, 12 May 2009 10:47:02 -0700, Walter Bright wrote:

> I wrote a brief article which should help:
> 
> http://www.digitalmars.com/d/2.0/migrate-to-shared.html

Good article. This is an exciting enhancment to an already exciting programming language.

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
May 13, 2009
Jarrett Billingsley wrote:
> // should be immutable int[3], no?
> immutable table[3] x = [6, 123, 0x87];

Really shouldn't that be enum, unless you mysteriously needed to take the address of it?
« First   ‹ Prev
1 2