Questions regarding Mercury

Thank you for your response. What confused me is that the VB6 commands like GOSUB and ON are listed as supported statements in the documentation.

Indeed, gosub is still a reserved word. @mh: as we don’t support it (just like VB.Net), it should not be a reserved word anymore.

On is a reserved word for:

  • Option Strict ON
  • ON error
  • Linq syntax

Will fix, thanx!

Thanks - but maybe keep it a reserved word, support it, and get a huge market from people with VB6 and VBA legacy projects!

Hi David,

I have my ideas about that, that I did NOT discuss with anyone at RemObjects yet.
So maybe in the future; at this stage we are working to get VB .Net compatibility to a 100%.
When we reached that, we can look in to other things, maybe even this one.

Isn’t GOSUB not the same as Call? Only difference is that, back then, GOSUB only did call subs (methods) without arguments.

So you could easily keep GOSUB as a reserved, functional, keyword.

Maybe I’m forgetting something.

Gosub goes to a Label in the same routine, with Return to get back where you started.

Ah yes, now I remember again. I understand why I wanted to forget that ;). The cousin of GOTO …,

Don’t think it’s wise to have that back.

1 Like

Or the predessor of Subs and Functions

Said goodbye to it after GWBASIC :slight_smile:

2 Likes