scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
201 stars 56 forks source link

In some cases, `$foo[%*]` and `$foo[]` are not equivalent. #162

Closed dzpao closed 1 year ago

dzpao commented 1 year ago
2023-01-14 18:01:03 INPUT: #var foo {{dzp}{{id}{dzp}{level}{18}}{xgg}{{id}{xgg}{level}{33}}}
#OK. VARIABLE {foo} HAS BEEN SET TO {{dzp}{{id}{dzp}{level}{18}}{xgg}{{id}{xgg}{level}{33}}}.
2023-01-14 18:01:05 INPUT: #var foo
#VARIABLE {foo}
{
    {dzp}
    {
        {id} {dzp}
        {level} {18}
    }
    {xgg}
    {
        {id} {xgg}
        {level} {33}
    }
}
2023-01-14 18:01:08 INPUT: #echo {VALUES: %s} {$foo[%*]}
VALUES: {{id}{dzp}{level}{18}}{{id}{xgg}{level}{33}}
2023-01-14 18:01:12 INPUT: #echo {VALUES: %s} {$foo[]}
VALUES: {}{}
scandum commented 1 year ago

Thanks, I got this fixed in the beta.