Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Save type information for untyped methods

  • Loading branch information...
commit 2c15e44660fd2b51e72ae5839d9eb27709778010 1 parent b269f5c
@mwh authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 genc.grace
View
8 genc.grace
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.