Skip to content
Permalink
Browse files

Merge pull request #687 from krekoten/class_initialize_copy

Class#initialize_copy
  • Loading branch information
alex committed May 7, 2013
2 parents bcf99ff + d9a1212 commit d8ba718c159df6c10717fc4375b67f9721437fef

This file was deleted.

This file was deleted.

@@ -128,6 +128,12 @@ def method_initialize(self, space, w_superclass=None, block=None):
self.getsingletonclass(space)
space.send_super(space.getclassfor(W_ClassObject), self, "initialize", [], block=block)

@classdef.method("initialize_copy")
def method_initialize_copy(self, space, w_other):
if self.superclass is not None or self is space.w_basicobject:
raise space.error(space.w_TypeError, "already initialized class")
return space.send_super(space.getclassfor(W_ClassObject), self, "initialize_copy", [w_other])

@classdef.method("superclass")
def method_superclass(self, space):
if self.superclass is not None:

0 comments on commit d8ba718

Please sign in to comment.
You can’t perform that action at this time.