PureBasic 5.10 beta 7
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: PureBasic 5.10 beta 7
Beta 6 died soon!
Re: PureBasic 5.10 beta 7
#PB_OS_Windows_Server_2008_R2 is missing in PB5.0 final (haven't installed the beta, sorry).
#PB_OS_Windows_Server_2012 works, but it is missing in the docs for OSVersion().
MSDN: Operating System Version
Does this already work with the latest beta?
#PB_OS_Windows_Server_2012 works, but it is missing in the docs for OSVersion().
MSDN: Operating System Version
Code: Select all
Debug #PB_OS_Windows_Server_2008_R2
Debug #PB_OS_Windows_Server_2012
Re: PureBasic 5.10 beta 7
It's added for the next beta.
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PureBasic 5.10 beta 7
Code: Select all
x.d = 3
Debug x ; -> 3.0
Debug Str(x) ; -> 3
IMHO "3.0" is actually better than "3" in this case, because it indicates that the respective variable is not an integer.
Re: PureBasic 5.10 beta 7
Little John wrote:For the sake of consistency, wouldn't it be better if Str(x) would also yield "3.0"?Code: Select all
x.d = 3 Debug x ; -> 3.0 Debug Str(x) ; -> 3
IMHO "3.0" is actually better than "3" in this case, because it indicates that the respective variable is not an integer.
Code: Select all
x.d = 3
Debug x ; -> 3.0
Debug StrD(x, 1) ; -> 3.0
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PureBasic 5.10 beta 7
Ooops.
I was meaning StrD().
Second approach:
For the sake of consistency, wouldn't it be better if StrD(x) would also yield "3.0"?
IMHO "3.0" is actually better than "3" in this case, because it indicates that the respective variable is not an integer.
Yes, we could use StrD(x,1) in this particular case, but that would cut off decimal places in other cases.

Second approach:

Code: Select all
x.d = 3
Debug x ; -> 3.0
Debug StrD(x) ; -> 3
IMHO "3.0" is actually better than "3" in this case, because it indicates that the respective variable is not an integer.
Yes, we could use StrD(x,1) in this particular case, but that would cut off decimal places in other cases.
- Guevara-chan
- User
- Posts: 13
- Joined: Sat Jun 18, 2011 12:20 pm
Re: PureBasic 5.10 beta 7
Quite unlikely. Just try something like this to ascertain:For the sake of consistency, wouldn't it be better if StrD(x) would also yield "3.0"?
Code: Select all
Define x.d = 3.0
Debug "x.d = «" + x.d + "» from debugger's perspective..."
Last edited by Guevara-chan on Mon Feb 11, 2013 3:54 pm, edited 1 time in total.
life MOV.I #life+1, *life
האם יש זמן לעצור ?
האם יש זמן לעצור ?
Re: PureBasic 5.10 beta 7
Use different threads for such questions, thanks.