Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 10, 2010 D 2.0 Reference: document cast(immutable) etc. | ||||
---|---|---|---|---|
| ||||
Minor language documentation / reference issue. I found these flavours of cast() expressions being parsed by DMD: cast() cast(const) cast(immutable) cast(invariant) cast(shared) cast(shared const) cast(const shared) cast(wild) cast(shared wild) cast(wild shared) At the moment only cast(Type) is documented here, no mention is given to the other forms of cast: http://www.digitalmars.com/d/2.0/expression.html#CastExpression |
December 10, 2010 Re: D 2.0 Reference: document cast(immutable) etc. | ||||
---|---|---|---|---|
| ||||
Posted in reply to darraghcoy | Walter actually fixed this to some extent a week or two ago, but for whatever reason the changes haven't made it to the website yet.
Though even in docsrc,
cast()
is missing.
On 12/09/2010 06:09 PM, darraghcoy wrote:
> Minor language documentation / reference issue.
> I found these flavours of cast() expressions being parsed by DMD:
>
> cast()
> cast(const)
> cast(immutable)
> cast(invariant)
> cast(shared)
> cast(shared const)
> cast(const shared)
> cast(wild)
> cast(shared wild)
> cast(wild shared)
>
> At the moment only cast(Type) is documented here, no mention is given to the
> other forms of cast:
> http://www.digitalmars.com/d/2.0/expression.html#CastExpression
|
December 29, 2010 Re: D 2.0 Reference: document cast(immutable) etc. | ||||
---|---|---|---|---|
| ||||
Posted in reply to darraghcoy | On 10/12/2010 00:09, darraghcoy wrote: > Minor language documentation / reference issue. > I found these flavours of cast() expressions being parsed by DMD: <snip> > cast(wild) > cast(shared wild) > cast(wild shared) <snip> What is wild? Can't find it in the docs. Where did you find out about its existence? Stewart. |
December 29, 2010 Re: D 2.0 Reference: document cast(immutable) etc. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | wild is a more appropriate name for inout
On 12/29/2010 12:53 PM, Stewart Gordon wrote:
> On 10/12/2010 00:09, darraghcoy wrote:
>> Minor language documentation / reference issue.
>> I found these flavours of cast() expressions being parsed by DMD:
> <snip>
>> cast(wild)
>> cast(shared wild)
>> cast(wild shared)
> <snip>
>
> What is wild? Can't find it in the docs. Where did you find out about
> its existence?
>
> Stewart.
|
December 29, 2010 Re: D 2.0 Reference: document cast(immutable) etc. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | On 12/29/2010 12:53 PM, Stewart Gordon wrote:
>
> What is wild? Can't find it in the docs. Where did you find out about
> its existence?
>
> Stewart.
That is, in parse.c, TOKwild is aliased to TOKinout, so you can't literally write
cast(wild) x
|
Copyright © 1999-2021 by the D Language Foundation