Author Topic: Same Name of SUB and FUNCTION is not possible for QB but possible for QB64  (Read 2590 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Hi friends

here I remark a difference (not a bug) between Qbasic/QB45 and our Qb64.
Quote
QB does not accept the same name for a SUB and a Function
otherwise QB64 let use the same name for a SUB and a FUNCTION.
 In fact they have a different parser. We must stress this somewhere in the info about QB64.

Thanks to read

Programming isn't difficult, only it's  consuming time and coffee

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Oh cool! I didn't knew this. :)
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

FellippeHeitor

  • Guest
What are you guys even talking about?

Edit: WHAAAAAAT? I never knew that 😂😂😂😂😂😂😂😂
« Last Edit: April 10, 2021, 11:53:16 am by FellippeHeitor »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
I did know this since 2021-04-08 and TempodiBasic's first post here:
https://www.qb64.org/forum/index.php?topic=3791.msg131507#msg131507

I changed the case of one of the H's in the Half's and the IDE picked right up on that!

Hey @FellippeHeitor, you're back. :)

Who was that other guy sitting in for you?
« Last Edit: April 10, 2021, 01:07:49 pm by bplus »