fbpx
× Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET

Problem in Converted Vulcan app in X #

  • Trevor L'Estrange
  • Trevor L'Estrange's Avatar Topic Author
  • Offline
More
1 year 6 months ago #1 by Trevor L'Estrange
Problem in Converted Vulcan app in X # was created by Trevor L'Estrange
I am doing some initial testing on porting some Vulcan apps to X# and have hit a problem as follows

I have attached 2 images showing a small converted app that compiles in Vulcan - but in X# gets an "expecting EOS" error when compiling. I am assuming it is because the variable name "winHtmlBody.ToolStripSeparator1" has the full stop in it, but this compiled okay in Vulcan.

thanks
Trevor
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic Problem in Converted Vulcan app in X #
Trevor,

The fact that Vulcan allows a dot in the protected variable name is clearly a bug in Vulcan. I just created the following test code in Vulcan:
CLASS foo
	PROTECT test.var AS LONG
END CLASS

If you look (with Reflector or ILSpy) in the generated assembly then you will see that the "test." part of the variable name gets thrown away by the Vulcan compiler:
public class foo
{
	protected int var;

	[CompilerGenerated]
	public foo()
	{
	}
}

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.