| Thread overview | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 12, 2009 Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
I wrote a brief article which should help: http://www.digitalmars.com/d/2.0/migrate-to-shared.html | ||||
May 12, 2009 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to The Anh Tran | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley wrote:
> A couple typos:
Fixed.
| |||
May 12, 2009 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | 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?
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply