Recent

Author Topic: An issue with an error message  (Read 1926 times)

SaintMichael57

  • New Member
  • *
  • Posts: 18
An issue with an error message
« on: May 27, 2017, 09:16:59 pm »
Dear Free Pascal Community:
     I did not initialize the necessary variables before the WHILE...DO
loop in which they were used.  Could this result in a 201 run time
error message?  Thank you.


                                         

sky_khan

  • Guest
Re: An issue with an error message
« Reply #1 on: May 27, 2017, 09:58:40 pm »
Yes, in theory. Hard to tell if it would or not without looking at source.

Thaddy

  • Hero Member
  • *****
  • Posts: 14158
  • Probably until I exterminate Putin.
Re: An issue with an error message
« Reply #2 on: May 28, 2017, 06:50:51 am »
Yes, in theory. Hard to tell if it would or not without looking at source.

Well, yes, in theory, but 201 is a range check error and that can only occur if range checks are on (and so on purpose, requires programmer interaction). Of all the possible problems that an uninitialized variable can cause, this would be the most unlikely one. But yes, in theory, yes.
« Last Edit: May 28, 2017, 06:53:24 am by Thaddy »
Specialize a type, not a var.

 

TinyPortal © 2005-2018