Permalink
Browse files

Save type information for untyped methods

  • Loading branch information...
1 parent b269f5c commit 2c15e44660fd2b51e72ae5839d9eb27709778010 @mwh committed Jul 4, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 genc.grace
View
@@ -647,9 +647,7 @@ method compilemethod(o, selfobj, pos) {
out(" struct UserObject *{uo2} = (struct UserObject*){selfobj};")
out(" {uo2}->data[{pos}] = emptyclosure;")
out(" Method *meth_{litname} = addmethod2pos({selfobj}, \"{escapestring2(name)}\", &{litname}, {pos});")
- if (haveTypedParams) then {
- compilemethodtypes(litname, o)
- }
+ compilemethodtypes(litname, o)
} else {
out(" block_savedest({selfobj});")
out(" Object closure" ++ myc ++ " = createclosure("
@@ -667,9 +665,7 @@ method compilemethod(o, selfobj, pos) {
out(" struct UserObject *{uo} = (struct UserObject*){selfobj};")
out(" {uo}->data[{pos}] = (Object)closure{myc};")
out(" Method *meth_{litname} = addmethod2pos({selfobj}, \"{escapestring2(name)}\", &{litname}, {pos});")
- if (haveTypedParams) then {
- compilemethodtypes(litname, o)
- }
+ compilemethodtypes(litname, o)
}
inBlock := origInBlock
paramsUsed := origParamsUsed

0 comments on commit 2c15e44

Please sign in to comment.