Skip to content

Commit

Permalink
fix bug in constructor redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
erg committed Jan 4, 2010
1 parent 8c0b11f commit e3ce517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/constructors/constructors.factor
Expand Up @@ -49,8 +49,8 @@ MACRO:: slots>constructor ( class slots -- quot )
reverse? [ reverse ] when
'[ @ _ [ execute( obj -- obj ) ] each ] effect define-declared ;

: scan-constructor ( -- class word )
scan-word [ name>> "<" ">" surround create-in ] keep ;
: scan-constructor ( -- word class )
scan-word [ name>> "<" ">" surround create-in dup reset-generic ] keep ;

: parse-constructor ( -- class word effect def )
scan-constructor complete-effect parse-definition ;
Expand Down

0 comments on commit e3ce517

Please sign in to comment.