QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: doppler on October 10, 2021, 01:07:54 pm
-
Why would I even discuss the matter if it was that simple. Both IDE's in my opinion should have puked for syntax not compile and run. The results were the same for both. I was going to create a temporary value f$. Realized I wasn't going to do anything more with f$. Decided to output the f$ directly to file. I did this: (the wrong way)
Do Until EOF(1)
Line Input #1, f$
p = InStr(17, f$, "\")
Print #2, f$ = Right$(f$, Len(f$) - p)
Loop
System
Forgot to remove the "f$ = ". My brain was on autopilot and fingers were just doing there thing. IMHO, the IDE's should have puked.
I made a Blonder not blunder, see a previous post thread.
Now, somebody is going to say the precompiler could not possibly find all faults. (Granted!), But we have taken so much to being true to QB45, Even errors are the same.
OK, let the bashing commence.
-
The above evaluates to 0 if the values don't match; -1 if the values match. The compiler is doing as instructed ;-)
-
Like Fellippe was saying, it's evaluating the truthfulness of the statement and will output either a -1 or 0. Nothing wrong there.
-
IMHO, the IDE's should have puked.
You probably got a 0, what more could you ask for?
-
Fellippe probably needs to apply some additional AI within the IDE along the lines of 2001: A Space Odyssey's HAL9000 computer where you'd receive the following message:
"I'm sorry Doppler, I'm afraid you can't do that"
in that very sinister voice.
-
what more could you ask for?
I did get a ZERO, asking for : Life, Brain, better dinner, more sleep time. Not getting any of those. I am just left holding a big fat ZERO.
-
It's in SCREEN 0, so as far as I'm concerned, it's all good!
Not to worry, the curse of making a funny new word wares off rather quickly, after you stumble over it a couple of times. Now if you will excuse me, I have to respond in kind to a similar "blonder" and I want to get it over with before my crow gets cold.
Pete