Goose  Diff

Differences From Artifact [c9d1f6b4a7]:

  • File bs/builtins/types/template/tdecl.cpp — part of check-in [a2a6841c8b] at 2022-07-18 00:14:42 on branch trunk — Keep track of the repetition depth of pack TVars, and assign a new value index for each repetition of a pack hole (user: zlodo size: 1555)

To Artifact [49a071ffb4]:

  • File bs/builtins/types/template/tdecl.cpp — part of check-in [ba07901758] at 2022-07-20 19:22:53 on branch trunk — vararg template: added pack TExpr and ellipsis operator (user: zlodo size: 1577)

30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44







-
+







    }
}

namespace goose::eir
{
    const Term& Bridge< TDecl >::Type()
    {
        static auto type = ValueToEIR( Value( TypeType(), TSID( tdecl ) ) );
        static auto type = ValueToEIR( Value( TypeType(), VEC( TSID( texpr ), TSID( tdecl ) ) ) );
        return type;
    }

    Value Bridge< TDecl >::ToValue( const TDecl& td )
    {
        return Value( Type(), VEC( td.type(), TERM( td.name() ), TERM( td.repetitionDepth() ) ) );
    }