Boundschecker


Closed Thread
Results 1 to 2 of 2

Thread: Boundschecker

  1. #1
    Join Date
    Jul 2003
    Location
    Lancashire
    Posts
    50

    Default Boundschecker

    Hi All

    Anyone know of a boundschecker for PBP?. I have just discovered after using PBP for years that you can due to an error in my program, address an array element that doesnt exist and the program will still compile.

    Cheers Pete

  2. #2
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by enigma View Post
    Hi All

    Anyone know of a boundschecker for PBP?. I have just discovered after using PBP for years that you can due to an error in my program, address an array element that doesnt exist and the program will still compile.

    Cheers Pete
    Yes, it's like this...

    MyArraySize con 10
    MyArray var byte[MyArraySize]

    ... code...

    if x > MyArraySize then goto errorhandling
    MyArray[x] = y

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts