Page 1 of 1

Type Specifier confuses editor?

Posted: Wed May 22, 2019 2:10 am
by terrymcg
Hi Cherry Folks...

FYI, I was experimenting with Generic Types the other day and noticed that including a type specification in "<type>" form in a class definition confuses the "module explorer" part of the editor in VMD.

This example shows what I mean (and isn't intended to compile/run):
Image
You can see there's no entry for class Foo, but its two member functions are displayed.

Getting rid of the whole "Implements" part puts things right:
Image
Now we can see Foo again.

But it isn't "Implements" that's causing the confusion, it's "<Integer>":
Image
Really, it seems to be the fact that there are "<>" characters that's the root of the confusion.

It's not a big deal as the confusion doesn't affect the compile-ability of the code, but it isn't quite expected behaviour either.

Or am I the confused one? ;)

Cheers,
--
Terry McG

Re: Type Specifier confuses editor?

Posted: Thu May 23, 2019 6:44 am
by CherryRuss
Hi Terry.

Yep, that's a bug. Thanks for catching it. It should be fixed in the next build.

Re: Type Specifier confuses editor?

Posted: Fri May 24, 2019 12:31 am
by terrymcg
Hi Russ...

Thanks!

It's just cosmetic, but... Sweet! ;)

Cheers,
--
Terry McG