On 01/20/11 21:57, Andrej Mitrovic wrote:
> On 1/21/11, Jonathan M Davis wrote:
>> Umm. in is never the default. in is essentially an alias for const scope.
>> The
>> default is non-shared and mutable.
>>
>> - Jonathan M Davis
>>
>
> That's what I thought. But I did saw it mentioned in this NG a
Andrej Mitrovic wrote:
> On 1/21/11, Jonathan M Davis wrote:
>> Umm. in is never the default. in is essentially an alias for const scope.
>> The
>> default is non-shared and mutable.
>>
>> - Jonathan M Davis
>>
>
> That's what I thought. But I did saw it mentioned in this NG a couple
> of times,
On 1/21/11, Jonathan M Davis wrote:
> Umm. in is never the default. in is essentially an alias for const scope.
> The
> default is non-shared and mutable.
>
> - Jonathan M Davis
>
That's what I thought. But I did saw it mentioned in this NG a couple
of times, I can't remember by who though.
In a
On Thursday, January 20, 2011 19:03:09 Andrej Mitrovic wrote:
> import std.stdio;
> import std.traits;
>
> alias ParameterStorageClassTuple STCTuple;
> alias ParameterStorageClass STC;
>
> void foo(in int[] x) { /*x[0] = 5; // This would be a compile-time error*/
> } void bar(int[] x) { x[0] = 5;
import std.stdio;
import std.traits;
alias ParameterStorageClassTuple STCTuple;
alias ParameterStorageClass STC;
void foo(in int[] x) { /*x[0] = 5; // This would be a compile-time error*/ }
void bar(int[] x) { x[0] = 5; }
void main()
{
assert(STCTuple!foo[0] == STC.NONE);
assert(STCTuple