Message in smalltalk -
i'm new smalltalk , have question.
i have written message:
((objednavkaset select:[:a | auto porucha notempty]) select: [:d | (d auto porucha select:[:x | x datum_poruchy between: x datum_vypujceni and: x datum_skutecneho_vraceni]) size > 0]) and have problem, need access datum_vypujceni , datum_skutecneho_vraceni select
select: [:d | (d auto porucha select:[:x | x datum_poruchy between: x datum_vypujceni and: x datum_skutecneho_vraceni]]
but don't know how, there way access it?
here diagram if need it.

as uko's answer removal of initial select: , use of anysatisfy:, think jarda's question still remains unanswered.
the actual question how access 2 instance variables datum_vypujceni , datum_skutecneho_vraceni of objed, rather how write selection script.
so, here answer simple question: jarda, add 2 methods in objednavka class answer these instance variables:
datum_vypujceni ^datum_vypujceni datum_skutecneho_vraceni ^datum_skutecneho_vraceni once have these methods, script these data objed variable. note need getter access datum_poruchy of poruchy. make sure poruchy class has getter method
datum_poruchy ^datum_poruchy
Comments
Post a Comment