On Thu, 05 Mar 2009, Mindaugas Kavaliauskas wrote:

Hi,

>> PRIVATE declaration can be used in any place of code and it was
>> beyond my and other [x]Harbour developers imagination ;-) that user
>> may want to create code like:
>>    while .t.
>>       private var := <something>
>>       ...
>>    enddo
> Usually do not use PRIVATE variables in single thread applications. I 
> wanted to avoid STATIC or THREAD STATIC here, so, I've used PRIVATE and had 
> enough imagination to declare it in a loop :)

Just for information.
What was expected results of above code for you?
Now I added the protection so repeated declarations in the same function
are ignored (try the test code from ChangeLog) but in the previous version
each call to PRIVATE always put previous PRIVATE variable on private stack.
These variables were restored in the reverse order on function exit.
This function never end so the stack was only growing.

>> I can try to look at uhttpd but it will have to be updated to work
>> in Linux. At least in some special test mode. Can you update it?
>> I tried to compile it with INET support and the following functions
>> are missed:
> I've almost finished with new ideas for uhttpd. I hope to send sample code 
> to mailing list next week. I've fixed socket.c using your suggestions, and 
> I can successfully compile and run uhttpd under linux.

Thank you very much.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to