Author Topic: min/max  (Read 41 times)

jcfuller

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
min/max
« on: February 13, 2020, 08:16:30 AM »
Kevin,
  Would you do the same for lowercase min/max as you did for true/false and leave them be in c++.
Thank you for your consideration.

James

MrBcx

  • Administrator
  • Full Member
  • *****
  • Posts: 218
    • View Profile
Re: min/max
« Reply #1 on: February 13, 2020, 09:48:41 AM »
Kevin,
  Would you do the same for lowercase min/max as you did for true/false and leave them be in c++.
Thank you for your consideration.

James

James,

Short answer: No.

Long answer: You are referring to this proposal:
https://bcxbasiccoders.com/smf/index.php?topic=93.msg365#msg365

I subsequently added <stdbool.h> and I will include the addition of "_Bool" in 7.4.5.

I did not change TRUE/FALSE to emit only true/false.

I will not change MIN/MAX to emit only min/max.  If you want to know why not, you will need to do your own homework.

You may be overlooking a built-in control that will allow you to use any C++ statement that you want, unmodified by BCX:

Code: [Select]

!  std::cout << "min : " << std::min (100,50)  << std::endl;

!  std::cout << "max : " << std::max (50, 100) << std::endl;



Going forward, I'm not going to entertain any questions about how to bend BCX into being a subpar C++ translator.  If requested changes are not supported by and benefiting the various C and C++ compilers known to work with BCX's output, when operating as a "C" compiler, then count me out.