[Implemented] Option Explicit

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
markus
New User
New User
Posts: 5
Joined: Tue Oct 21, 2003 7:18 am

[Implemented] Option Explicit

Post by markus »

It would be nice to have an option to force variable declaration like OPTION EXPLICIT in VB6.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Grrrrrrrrr.... If you say VB6 one more time..................








Just kiddin :-)
-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
venom
User
User
Posts: 56
Joined: Fri Jul 25, 2003 1:54 pm
Location: Australia

Post by venom »

It would help when you misspell variables
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

use jaPBe...

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
markus
New User
New User
Posts: 5
Joined: Tue Oct 21, 2003 7:18 am

Post by markus »

@Karbon
- of cause I say VB6; it is a nice system with great feature; but I think PB is better for my purposes, otherwise I would'n post my threads here :wink:

@LarsG and venom
- having your editor test your variables is much less save than having the compiler do the job. And it could be switched on/off as an compiler option, so it would make no diffwerence if you don't like it. On the other hand it makes debugging much easier and shouldn't be too hard to implement in the compiler.
Jan Vooijs
Enthusiast
Enthusiast
Posts: 196
Joined: Tue Sep 30, 2003 4:32 pm
Location: The Netherlands

Post by Jan Vooijs »

Well to stir things up a little!!

We never hear from FRED how he stands on the "OPTION EXPLICIT" we are asking for???

@FRED could you PLEASE adapt the compiler so it gives a list of ALL variables used in the program!!

Just the name and type, NOTHING more no line numbers just the name and type!!

Since YOU do not comment on this "OPTION EXPLICIT" issue!!

This would help development ENORM. I looked edit/comile/debug cycles more than 30 minutes just to discover i made a new variable "AtomicTitle$" (correct) and "AtomicTilte$" (wrong) spot the difference!!

I can under stand you have to "redisign" the compiler. For the "OPTION EXPLICIT" issue. But personally i think the administration of the compiler is there in the end just "dump" that to a file and voila!! Problem solved for US !!

Thanks,
Jan Vooijs....
Life goes to Fast, Enjoy!!

PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!

AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
Post Reply