Page 1 of 1

addelement() without parameter

Posted: Fri Nov 14, 2003 1:36 am
by blueznl
how about this one?

addelement() without a list name affects the last addressed list
same for the other list commands

though i know when lists are adressed in procedures things can get nasty...

it's mostly to avoid these kind of thins:

addelement(test())
test()="test"

and change it to:

addelement()
test()="test"

when doing lots of stuff with lists in a small block of code it could improve readability

Posted: Fri Nov 14, 2003 10:02 am
by Fred
This system isn't thread safe, which is a big issue in PureBasic. All the commands which use a 'current' object instead of pointing it explicitely in the function is not thread compliant. I will probably rethink all this logic when string will be reworked (v4.0).

Posted: Fri Nov 14, 2003 10:37 am
by blueznl
hmmm okay, i see, each thread doesn't store 'last used' information... that can be a bit risky :-)

i would assume the same would apply to all the drawing, windows etc. commands?