Include constants list in updates (especially new ones)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Include constants list in updates (especially new ones)

Post by Kale »

Reading this post here:
viewtopic.php?t=10886

I've come to think its maybe a good idea to start including all the PB constants within the PB manual with each update. Looking through the residents files on CVS i've run across these:
#NUL$ = Chr(000) : #NUL = 0 ; (NULL)
#SOH$ = Chr(001) : #SOH = 1 ; (Start of Header)
#STX$ = Chr(002) : #STX = 2 ; (Start of Text)
#ETX$ = Chr(003) : #ETX = 3 ; (End of Text)
#EOT$ = Chr(004) : #EOT = 4 ; (End of Transmission)
#ENQ$ = Chr(005) : #ENQ = 5 ; (Enquiry)
#ACK$ = Chr(006) : #ACK = 6 ; (Acknowledgment)
#BEL$ = Chr(007) : #BEL = 7 ; (Bell)
#BS$ = Chr(008) : #BS = 8 ; (Backspace)
#HT$ = Chr(009) : #HT = 9 ; (Horizontal Tab)
#TAB$ = Chr(009) : #TAB = 9 ; (TAB)
#LF$ = Chr(010) : #LF = 10 ; (Line Feed)
#VT$ = Chr(011) : #VT = 11 ; (Vertical Tab)
#FF$ = Chr(012) : #FF = 12 ; (Form Feed)
#CR$ = Chr(013) : #CR = 13 ; (Carriage Return)
#SO$ = Chr(014) : #SO = 14 ; (Shift Out)
#SI$ = Chr(015) : #SI = 15 ; (Shift In)
#DLE$ = Chr(016) : #DLE = 16 ; (Data Link Escape)
#DC1$ = Chr(017) : #DC1 = 17 ; (Device Control 1) (XON)
#DC2$ = Chr(018) : #DC2 = 18 ; (Device Control 2)
#DC3$ = Chr(019) : #DC3 = 19 ; (Device Control 3) (XOFF)
#DC4$ = Chr(020) : #DC4 = 20 ; (Device Control 4)
#NAK$ = Chr(021) : #NAK = 21 ; (Negative Acknowledgement)
#SYN$ = Chr(022) : #SYN = 22 ; (Synchronous Idle)
#ETB$ = Chr(023) : #ETB = 23 ; (End of Trans. Block)
#CAN$ = Chr(024) : #CAN = 24 ; (Cancel)
#EM$ = Chr(025) : #EM = 25 ; (End of Medium)
#SUB$ = Chr(026) : #SUB = 26 ; (Substitute)
#ESC$ = Chr(027) : #ESC = 27 ; (Escape)
#FS$ = Chr(028) : #FS = 28 ; (File Separator)
#GS$ = Chr(029) : #GS = 29 ; (Group Separator)
#RS$ = Chr(030) : #RS = 30 ; (Request to Send)(Record Separator)
#US$ = Chr(031) : #US = 31 ; (Unit Separator)
#DEL$ = Chr(127) : #DEL = 127 ; (delete)
#NULL$ = Chr(000) ; (NULL)
#CRLF$ = Chr(13) + Chr(10)
#LFCR$ = Chr(10) + Chr(13)
#DOUBLEQUOTE$ = Chr(34)
#DQUOTE$ = Chr(34)
I didn't even know these where defined! I can find no mention of them in the release notes for v3.90 or in the manual. :? I knew they were a request and this one has been included and missed i think.
--Kale

Image
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I think Freak snuck them in there around 3.81.. Agreed that those should be in the docs somewhere!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Nope, wasn't me. *points at Danilo...* :wink:

But it's true, these were added somewhere between the updates, so when
we were all working on docs and stuff, they were forgotten.
Usually, new constants come with new commands and are also mentioned
in the docs of these commands, so no big problem i think.

Timo
quidquid Latine dictum sit altum videtur
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Nope, wasn't me. *points at Danilo...*
lol :)
--Kale

Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

hehe. :)

Re the constants. I agree that having a list somewhere in the docs beats digging and delving.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

any news about this being done for the next doc update?
--Kale

Image
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post by Andre »

Kale wrote:any news about this being done for the next doc update?
I will add a list with the next PB update. :)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Include constants list in updates (especially new ones)

Post by PB »

> #DOUBLEQUOTE$ = Chr(34)
> #DQUOTE$ = Chr(34)

These 2 are too long to bother using... why not change them to #DQ$ instead?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Nope, wasn't me. *points at Danilo...*

I miss Danilo. :cry: A real shame he doesn't hang around here anymore.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

I miss Danilo. Crying or Very sad A real shame he doesn't hang around here anymore.
i agree :(
I will add a list with the next PB update.
Cool! :D
--Kale

Image
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

PB wrote: I miss Danilo. :cry: A real shame he doesn't hang around here anymore.
yes I agree, Danilo is a genius, but people take it personally when he makes a sharp comment, that's why he does not frequent this forums
anymore.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> people take it personally when he makes a sharp comment

Some people need to be told, though. :) If they can't handle it, too bad.
Every now and then I'll tell someone off, and too bad if they think I'm evil.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply