Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
diakopter committed Nov 8, 2011
1 parent 6fc09fa commit a8c8822
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lua/compiler/IndexersReplacements.txt
Expand Up @@ -19,10 +19,10 @@ Ops%.type_object_for%( Ops[43](
Ops%.instance_of%( Ops[44](
%.STable [1] # on every RakudoObject impl (inner classes of the repr classes)
%.Value [2] # some RakudoObject impl
%.type_object_for%( [2]( # all RakudoObject impl
%.instance_of%( [3]( # all RakudoObject impl
%.defined%( [4]( # all RakudoObject impl
%.hint_for%( [5]( # all RakudoObject impl
%.type_object_for%( [2]( # all REPR impl
%.instance_of%( [3]( # all REPR impl
%.defined%( [4]( # all REPR impl
%.hint_for%( [5]( # all REPR impl
Hints%.NO_HINT=%-1 unused=0
Hints%.NO_HINT -1
%.DefaultStrBoxType [2] # on ThreadContext
Expand Down
5 changes: 3 additions & 2 deletions lua/runtime/List.lua
Expand Up @@ -14,8 +14,9 @@ function makeList ()
return list;
end
function List:Add (item)
self.Count = self.Count + 1;
self[self.Count] = item;
local count = self.Count + 1;
self.Count = count
self[count] = item;
end
function List:Push (item)
self.Count = self.Count + 1;
Expand Down
2 changes: 1 addition & 1 deletion lua/runtime/Metamodel/Representations/P6int.lua
Expand Up @@ -39,7 +39,7 @@ function makeP6int ()
function P6int:defined (TC, O)
return not O.Undefined;
end
P6int[4] = P6int.new;
P6int[4] = P6int.defined;
function P6int:hint_for (TC, ClassHandle, Name)
return Hints.NO_HINT;
end
Expand Down

0 comments on commit a8c8822

Please sign in to comment.