On 09/10/2016 10:23 AM, Q. Schroll wrote:
Is there a difference between inferred and annotated attributes?
Example:
struct X(T)
{
this(S)(in S[] arr) // inferred pure
{ }
}
void main() pure
{
X!uint mut = [ 1, 2 ]; // proves inference (cf. main is pur
On Saturday, 10 September 2016 at 09:38:15 UTC, Lodovico Giaretta
wrote:
On Saturday, 10 September 2016 at 08:23:35 UTC, Q. Schroll
wrote:
Is there a difference between inferred and annotated
attributes?
Example:
struct X(T)
{
this(S)(in S[] arr) // inferred pure
{ }
On Saturday, 10 September 2016 at 08:23:35 UTC, Q. Schroll wrote:
Is there a difference between inferred and annotated attributes?
Example:
struct X(T)
{
this(S)(in S[] arr) // inferred pure
{ }
}
void main() pure
{
X!uint mut = [ 1, 2 ]; // proves in
Is there a difference between inferred and annotated attributes?
Example:
struct X(T)
{
this(S)(in S[] arr) // inferred pure
{ }
}
void main() pure
{
X!uint mut = [ 1, 2 ]; // proves inference (cf. main is
pure)
// immutable X!uint imm1 = [ 1