It is currently Mon Oct 14, 2019 3:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Add description for #Null$
PostPosted: Tue Jan 15, 2019 6:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 369
Location: Germany
For this constant we absolutely need a description in the PB help. Best with example code, where the application of this constant has visible effects.

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: Add description for #Null$
PostPosted: Tue Jan 15, 2019 8:45 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 904
There is a description of #Null$ in the help in the chapter 'General Rules'.

However, this short description is in the wrong place, not in the constants, but in the literal strings section. Fred himself must have stumbled across the unstructured spaghetti text in the help :mrgreen:

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: Add description for #Null$
PostPosted: Sat Jan 19, 2019 10:54 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 369
Location: Germany
Josh wrote:
There is a description of #Null$ in the help in the chapter 'General Rules'.
Okay, well, it's just this again:
PB help wrote:
#Null$ : represents an null string. This can be used for API functions requiring a null pointer to a string, or to really free a string.
In this thread, Fred wrote that the constant only frees an internal string buffer: Function Space does not free memory
That's why I created this thread, because it's misleadingly described in the PB help.

Now Fred has apparently accepted that it is a bug. The description in the help now seems to be correct. Very confusing.

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye