April 1, 2011
8:08 a.m.
AxiNat <tibabenfortlapalanca@gmail.com> writes:
Hi Friederich, here's two simple optimizations:
#(#nul #soh #stx #etx #eot #enq #ack #bel #bs #tab #lf) Â Â withIndexDo: Â [:each :index | Â Â Â self class compile: each asString , ' Â ^ asciiField at: ', index asString.].
Array withAll: #(1 2 3) is equivalent to #(1 2 3), and if you're not going to use the array again, you don't even need to assign it to a variable :) Well I do not want the compile part with String
Instead of manually using an index, it is more elegant to use withIndexDo:
Ok that is really nice to know Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus