Re: [UV] Variable never assigned a value warning

2004-03-04 Thread Mark Johnson
Not to mention the infidel CLEAR statement that does the same thing, hides errors. I believe the practice of variable assignment at the top is a practice brought over from other languages where all variables apparently need to be defined up front with DIM statements and variable types. I support s

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Hona, David S
:-)). Regards David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill H. Sent: Thursday, March 04, 2004 5:41 AM To: U2 Users Discussion List Subject: RE: [UV] Variable never assigned a value warning Marco: A useful alternative, which noone has ever

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Stevenson, Charles
o a soapbox. It's a sore spot where I keep getting poked. cds > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marco Manyevere > Sent: Wednesday, March 03, 2004 8:18 PM > To: U2 Users Discussion List > Subject: RE: [UV] Variable n

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Marco Manyevere
My query is not on how to suppress the warning messages but on why the compiler catches only a few of them. Even the case statement example you gave is in my opinion a good candidate for such warning messages because a robust program would have to provide for a default case block, something lik

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Stuart Boydell
> The easy answer is no. This would require the compiler to establish all > possible paths through a program and determine whether it was possible to > arrive at any place that uses a variable without setting it > first. Although > some compilers (many C compilers for example) make a good attempt

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Stevenson, Charles
> Is it technically or theoretically possible for the BASIC > compiler (or any other compiler for that matter) to catch > (during compilation) all the situations that might result in > the use of unassigned variable at runtime within the scope of > the subroutine being compiled? It's not exact

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Bill H.
numeric required; zero used. Stupid questions for the exasperated business developer? Bill > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Martin Phillips > Sent: Wednesday, March 03, 2004 12:42 AM > To: U2 Users Discussion List > Subject: R

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Stevenson, Charles
HEAR, HEAR! > Incidentally, I find the worryingly common practice of > setting all variables to zero / null at the top of a program > very annoying as it hides the very useful unassigned variable > trap, leaving you thinking your program works when actually > it doesn't. > > Martin Phillips >

Re: [UV] Variable never assigned a value warning

2004-03-03 Thread Results
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco Manyevere Sent: 03 March 2004 06:32 To: [EMAIL PROTECTED] Subject: [UV] Variable never assigned a value warning Hi All, Is it technically or theoretically possible for the BASIC compiler (or any oth

RE: [UV] Variable never assigned a value warning

2004-03-03 Thread Brian Leach
PROTECTED] On Behalf Of Marco Manyevere > Sent: 03 March 2004 06:32 > To: [EMAIL PROTECTED] > Subject: [UV] Variable never assigned a value warning > > Hi All, > > Is it technically or theoretically possible for the BASIC > compiler (or any other compiler for that matter

Re: [UV] Variable never assigned a value warning

2004-03-03 Thread Martin Phillips
ptional. I wouldn't like to try to support their code! Martin Phillips Ladybridge Systems 17b Coldstream Lane, Hardingstone, Northampton NN4 6DB +44-(0)1604-709200 - Original Message - From: "Marco Manyevere" <[EMAIL PROTECTED]> Subject: [UV] Variable never assig

[UV] Variable never assigned a value warning

2004-03-02 Thread Marco Manyevere
Hi All, Is it technically or theoretically possible for the BASIC compiler (or any other compiler for that matter) to catch (during compilation) all the situations that might result in the use of unassigned variable at runtime within the scope of the subroutine being compiled? Under what circu