Exemplo n.º 1
0
void executeCatStrStr(Executer &executer)
{
    auto rhs = executer.topStr();
    executer.pop();

    executer.setTop(*executer.topStr());
    *executer.topTmpStr() += *rhs;
}
Exemplo n.º 2
0
void executeCatTmpStr(Executer &executer)
{
    auto rhs = executer.topStr();
    executer.pop();

    *executer.topTmpStr() += *rhs;
}
Exemplo n.º 3
0
void executeCatStrTmp(Executer &executer)
{
    auto rhs_result = executer.topTmpStr();
    executer.pop();

    auto lhs_rhs = std::string{*executer.topStr()};
    std::swap(lhs_rhs, *rhs_result);

    executer.setTop(rhs_result);
    *executer.topTmpStr() += lhs_rhs;
}