diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-11 12:51:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-11 12:51:08 -0300 |
| commit | 6bfef60e77f5eec1057470010b4179ee6f830fe6 (patch) | |
| tree | 49454e412c34c5d5d88e5321456bbeadc15ee046 /bugs | |
| parent | 370d31a5593220723d222dec6e3e4019decc3309 (diff) | |
| download | lua-6bfef60e77f5eec1057470010b4179ee6f830fe6.tar.gz lua-6bfef60e77f5eec1057470010b4179ee6f830fe6.tar.bz2 lua-6bfef60e77f5eec1057470010b4179ee6f830fe6.zip | |
bug: rawset/rawget do not ignore extra arguments
Diffstat (limited to 'bugs')
| -rw-r--r-- | bugs | 21 |
1 files changed, 21 insertions, 0 deletions
| @@ -743,3 +743,24 @@ patch = [[ | |||
| 743 | ]], | 743 | ]], |
| 744 | } | 744 | } |
| 745 | 745 | ||
| 746 | |||
| 747 | Bug{ | ||
| 748 | what = [[rawset/rawget do not ignore extra arguments]], | ||
| 749 | |||
| 750 | report = [[Romulo Bahiense, 11/03/2005]], | ||
| 751 | |||
| 752 | example = [[ | ||
| 753 | a = {} | ||
| 754 | rawset(a, 1, 2, 3) | ||
| 755 | print(a[1], a[2]) -- should be 2 and nil | ||
| 756 | ]], | ||
| 757 | |||
| 758 | patch = [[ | ||
| 759 | * lbaselib.c: | ||
| 760 | 175a176 | ||
| 761 | > lua_settop(L, 2); | ||
| 762 | 183a185 | ||
| 763 | > lua_settop(L, 3); | ||
| 764 | ]], | ||
| 765 | } | ||
| 766 | |||
