May be it will make trubble if you have declared $a and/or $b in a higher 
scope or sub (with our) - but this is not happend in ASSP.

>My guess was that it has something to do with being called from the main
>thread or another thread.

Main thread never calls any check! This is done by the workers!
And as long the vars are not shared, they are exclusiv by every single 
thread!

I dont know why the $main::a$/$b  works - but it works - by the way I've 
never had this problem!

Thomas





Wim Borghs <wim.bor...@gmail.com> 
27.03.2009 20:27
Bitte antworten an
ASSP development mailing list <assp-test@lists.sourceforge.net>


An
ASSP development mailing list <assp-test@lists.sourceforge.net>
Kopie

Thema
Re: [Assp-test] Antwort: Re: Antwort: absurd misclassifications by 
bayesian check






2009/3/27 Thomas Eckardt/eck <thomas.ecka...@thockar.com>

> Just use the SMTP Connection screen - are the connection sorted by the
> active time?


Yes, that's how I checked it.


> There the same sort is used!


Yes, that's why I checked it.

Do you have trouble believing that the sort in sub BayesOK doesn't sort on
my site?
I don't blame you. I had trouble believing what I saw also.

Did you check if it sorts ok on your site? Please, someone, check it...

I still wonder if this issue occurs:
- only at my site for some bizarre reason
- on all sites using assp threaded
- on some sites, such as all sites using assp on ActiveState Perl
- ...

And I still don't understand why it gets fixed by changing this line:
@t=sort {abs($b-.5)<=>abs($a-.5)} @t;
into:
@t=sort {abs($main::b-.5)<=>abs($main::a-.5)} @t;

And why this sort fails while other similar sort instructions show no
problem.
My guess was that it has something to do with being called from the main
thread or another thread.
But that alone doesn't seem to explain it... Or main thread or not even 
has
nothing to do with it...
------------------------------------------------------------------------------
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************

------------------------------------------------------------------------------
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to