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

Support a direct construction of objects rather than "classes" #6

Closed
uhop opened this issue Jul 3, 2013 · 1 comment
Closed

Support a direct construction of objects rather than "classes" #6

uhop opened this issue Jul 3, 2013 · 1 comment
Assignees
Milestone

Comments

@uhop
Copy link
Owner

uhop commented Jul 3, 2013

In some cases instead of "classes" it is more efficient to create singleton objects directly.

@ghost ghost assigned uhop Jul 3, 2013
@uhop
Copy link
Owner Author

uhop commented Jul 17, 2017

It seems that advice() is doing it just fine. In more complex cases, we can always do something like that:

var a = new (dcl(...))(...);

Closing until we gather more use cases.

@uhop uhop closed this as completed Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant