aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/doublecpp.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-07 14:06:34 -0600
committerJack Nagel2013-01-07 14:32:14 -0600
commitc48c568a3e2b28809dac3e6c228ce2e114a9b5d0 (patch)
tree14e574f3faad457de6d100959a89c13020613ec8 /Library/Formula/doublecpp.rb
parent6de683c4b26ab3424f0260114a25ce151feb534f (diff)
downloadhomebrew-c48c568a3e2b28809dac3e6c228ce2e114a9b5d0.tar.bz2
Remove Array subclassing
Inheriting from Array (and other core types) is problematic: - It exposes a very wide interface with many methods that are not really relevant to the subclass. - It can cause some weird side effects, as many Array operations are in C and have hardcoded return values; for example, combining two array subclasses returns a new Array instead of the subclass. Avoid these problems using delegation and the Enumerable module where applicable.
Diffstat (limited to 'Library/Formula/doublecpp.rb')
0 files changed, 0 insertions, 0 deletions