Timothy Perrett schrieb:
>> The two defs only make sence together, that's why I put them together in
>> one def. I think that's encapsulation...> - dont use while loops. period.
>> you have a List[T], use foreach if you have a unit operation
>>
>>
>
> If you want encapsulation, because they "
Hi Marius,
the method is called from an Actor, everytime a new order is created. I
did override def afterCreate in my LimitOrder MetaObject.
thanks.
> In your code in what conditions joinOtherOrders gets called ?
>
> Br's,
> Marius
>
> On Nov 29, 6:18 pm, Hannes wrote:
>
>> Hi Tim,> Hannes,
> The two defs only make sence together, that's why I put them together in
> one def. I think that's encapsulation...> - dont use while loops. period. you
> have a List[T], use foreach if you have a unit operation
>
If you want encapsulation, because they "only make sense together",
stick them in
You might want to try to trace the thread name as well ...
On Nov 29, 6:49 pm, Marius wrote:
> In your code in what conditions joinOtherOrders gets called ?
>
> Br's,
> Marius
>
> On Nov 29, 6:18 pm, Hannes wrote:
>
> > Hi Tim,> Hannes,
>
> > > Firstly, I really, really wouldn't write your code
In your code in what conditions joinOtherOrders gets called ?
Br's,
Marius
On Nov 29, 6:18 pm, Hannes wrote:
> Hi Tim,> Hannes,
>
> > Firstly, I really, really wouldn't write your code like that...
>
> > Things of note:
> > - two defs inside defs... you usually wouldnt do this without a good re