Author Topic: Space Whack A Mole  (Read 105 times)

Robert

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Space Whack A Mole
« on: February 15, 2021, 11:45:11 PM »
BCX 7.6.4 translates

Code: [Select]
If x = z && y = z Then Prize(0)

to

Code: [Select]
      if(x==z& &y==z ){
      Prize(0);
    }

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 749
    • View Profile
Re: Space Whack A Mole
« Reply #1 on: February 16, 2021, 12:54:05 AM »
If x = z and y = z Then Prize(0)


  if(x==z&&y==z ){
      Prize(0);
    }

Robert

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Space Whack A Mole
« Reply #2 on: February 16, 2021, 02:54:43 AM »
If x = z and y = z Then Prize(0)


  if(x==z&&y==z ){
      Prize(0);
    }

Ah, yes. I realized that shortly after posting.

I've been updating Mike Sanders Curiosities to compile with MSVC and that && line is in several of his programs. Lots of interesting stuff in Mike's collection and I really like his modular organizational structure. I was initially looking for some Sound stuff and got waylaid by the fun and games.

Robert

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Space Whack A Mole
« Reply #3 on: February 17, 2021, 01:43:51 AM »
BCX 7.6.4 translates

Code: [Select]
If x = z && y = z Then Prize(0)

to

Code: [Select]
      if(x==z& &y==z ){
      Prize(0);
    }

The above code was broken in BCX 7.5.7

Code below broken since BCX 7.5.8

Code: [Select]
C = IIF(A <> B, 100, 200)
The work around for broken <> is NOTEQUALTO.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 749
    • View Profile
Re: Space Whack A Mole
« Reply #4 on: February 17, 2021, 08:33:36 AM »
 
Code below broken since BCX 7.5.8

Code: [Select]
C = IIF(A <> B, 100, 200)

Thanks for the report Robert ... I'll take a look at things.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 749
    • View Profile
Re: Space Whack A Mole
« Reply #5 on: February 25, 2021, 01:44:09 PM »
Robert,

I took about a week off to do some real work and finally got back into sleuthing your issues today.

I devised two small fixes that seem to take care of both issues that you noted.

Next I need to do all the routine regression testing.

Robert

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Space Whack A Mole
« Reply #6 on: February 25, 2021, 02:31:27 PM »
Robert,

I took about a week off to do some real work and finally got back into sleuthing your issues today.

I devised two small fixes that seem to take care of both issues that you noted.

Next I need to do all the routine regression testing.

Hi MrBCX:

I'm glad to hear that there is progress. As I have been browsing through old code, mostly from other coders, not mine, I have seen that problem pop up a few times. Sometimes it's difficult moving forward; thinking on your paraphrase of T. P. Thompson (1859): “We are walking upon eggs and … the omelet will not be made without the breaking of some.”

We are always looking forward to BCX updates. Thank you.