Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proc.allocate raises a TypeError #602

Merged
merged 2 commits into from Apr 11, 2013
Merged

Conversation

krekoten
Copy link
Contributor

No description provided.

if block is None:
raise space.error(space.w_ArgumentError, "tried to create Proc object without a block")
return W_ProcObject(space, block, False)

@classdef.singleton_method("allocate")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can replace this bit with classdef.undefine_allocator

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, didn't know it :) Thank you, will fix this.

alex added a commit that referenced this pull request Apr 11, 2013
Proc.allocate raises a TypeError
@alex alex merged commit c684219 into topazproject:master Apr 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants