avoid unnecessary deep copy by using rvalue ref

and test file update.
bug fixed in test/lexer.nas
This commit is contained in:
ValKmjolnir
2021-06-24 22:10:08 +08:00
parent fd57e9a47c
commit 3c9a10d710
17 changed files with 212 additions and 311 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ func()
{
prt(map);
var tmp=new_map();
forindex(var i;map)
forindex(var j;map[i])
for(var i=0;i<15;i+=1)
for(var j=0;j<20;j+=1)
{
var cnt=0;
foreach(var k;calc)