Page 3 of 5
Posted: Sun Mar 30, 2008 5:11 pm
by Trond
pdwyer wrote:Personally, I'm not a fan of escape characters in strings. I often see problems with ansi C programs (often connecting from unix) connecting to windows servers and things like domain\username authentication fails, then they manually hardcode a domain\\username into their conf files to deal with this some other catch spits the dummy in their code.
It might be convenient for a programmer to type a little less but I think that the time is sometimes lost with interest due to issues later and support time. I have no evidence that this happens a lot but I see it sometimes from the sysadmin side and so I'd not use it in my code if it were available
I see this all the time. Every C programmer has once forgotten that "MyPath\Here" will blow up if H is changed to t. Just wait until you want to match a double \ in a regular expression specified in C. That would be something like Match("\\\\\\\"). Escape characters simply cause problems.
Posted: Sun Mar 30, 2008 5:14 pm
by Kaeru Gaman
moogle wrote:I was referring to the attitude of "I've been using this for years I wouldn't want to do it an easier or better way".
you misunderstood me. I was just pointing out, that I have no need for escaped strings, because I'm used to roundscribe it via Chr().
actually, I got quickly into it in C to use "\n" e.g.
so, I' not strictly against the use of escaping.
but Paul has mentioned a good point what problems escaping could cause... (edit: and Trond fastened it)
could we agree that escaping stings are a latter problem for PB?
I would like to see things like full DX9 access and better 3D engine as higher priority....
Posted: Sun Mar 30, 2008 5:48 pm
by moogle
Kaeru Gaman wrote:could we agree that escaping stings are a latter problem for PB?
I would like to see things like full DX9 access and better 3D engine as higher priority....
Yes we can, it's true php doesn't handle filepaths alot so I never came across this
But at least discussing it has led others to show me some good ways to bypass it.
cheers.
Posted: Sun Mar 30, 2008 6:50 pm
by Fluid Byte
And let's also agree that PB is
not in the "dark ages of programming".

Posted: Sun Mar 30, 2008 7:06 pm
by Kaeru Gaman
definitely agreed...
ask "jear" in the german forums, he started programming in 1964 "when they threw the bits manually through the ringcore"....

Posted: Sun Mar 30, 2008 7:08 pm
by moogle
Fluid Byte wrote:And let's also agree that PB is
not in the "dark ages of programming".

only if it stops moronic replies...
Posted: Sun Mar 30, 2008 7:11 pm
by Kaeru Gaman
hey, be serious, PB is not dark ages.
Posted: Sun Mar 30, 2008 7:16 pm
by moogle
Posted: Sun Mar 30, 2008 8:48 pm
by Trond
What I'd like to see is automatic string concatenation for literals:
(So no need for +.)
PS! What I've seen of FreeBasic code generation was fast but buggy (huge memory leak).
Posted: Sun Mar 30, 2008 9:37 pm
by Derek
I'd like to see the unsigned variable types in PB that appear to be in FB.
Posted: Sun Mar 30, 2008 11:04 pm
by Fred
Both languages are now very complex, you can't just compare them based on one or another small feature. FreeBasic got that, PureBasic has this, it just doesn't work for a fair comparison. The best for you is to test both products and see which one will fit your needs.
Posted: Mon Mar 31, 2008 1:22 am
by pdwyer
Speaking of dark ages
Is there a good guide on how to use COM with PB? Is it easy to do or is it fairly painful not having variants built in?
Posted: Mon Mar 31, 2008 2:14 am
by Mistrel
pdwyer wrote:Speaking of dark ages
Is there a good guide on how to use COM with PB? Is it easy to do or is it fairly painful not having variants built in?
If you would like another head to bounce ideas off of, I would like to get into COM in PB as well.
Here are some references I've accumulated in the past:
http://www.purebasic.fr/english/viewtopic.php?t=22132
http://www.purebasic.fr/english/viewtopic.php?t=15755
http://www.purebasic.fr/english/viewtopic.php?t=26880
Posted: Mon Mar 31, 2008 6:46 pm
by Pantcho!!
Purebasic saved my life (well not really but in a feeling).
I love it.
I am making money from it.
So i stick with good habits.
Again thanks to the PB team.
Posted: Mon Mar 31, 2008 7:31 pm
by milan1612
What seperates PureBasic from FreeBasic is IMHO the feature rich standard library.
That's what keeps me from using C, FreeBasic and C++ more often, because it
makes (effectiv) programming so much easier...