initFromArray " MinecraftConstants initFromArray " | input | input _ #( ActivatorRail 157 Air 0 Anvil 145 Apple 260 Arrow 262 AwkwardPotion (373 16) "etc..." ). input pairsDo: [ :k :v | MinecraftConstants classPool at: k put: v. ].
On 3/5/13 6:49 PM, Louis LaBrunda wrote:
Filling in the pool from a literal array would seem much more natural to me ...
I just followed what ChronologyConstants did. VA Smalltalk and Squeak are very different in how they make pool dictionaries. Can you give me an example.