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

Add Flyweight #6

Merged
merged 3 commits into from Oct 2, 2017
Merged

Add Flyweight #6

merged 3 commits into from Oct 2, 2017

Conversation

silverweed
Copy link
Collaborator

Adding a Flyweight example.

I used an example where the flyweight class is a Tree which can be drawn at arbitrary location (extrinsic property = position) and has a species (intrinsic property). A class Forest works as a factory class for the flyweight trees.

Code compiles and run correctly and is formatted with crystal tool format.

@veelenga veelenga merged commit 83ceb14 into crystal-community:master Oct 2, 2017
@veelenga
Copy link
Member

veelenga commented Oct 2, 2017

refs #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants