xsharp.eu • Problem in Converted Vulcan app in X #
Page 1 of 1

Problem in Converted Vulcan app in X #

Posted: Mon Jul 10, 2017 4:26 am
by TrevorLE
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

Problem in Converted Vulcan app in X #

Posted: Mon Jul 10, 2017 6:37 am
by robert
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:

Code: Select all

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:

Code: Select all

public class foo
{
	protected int var;

	[CompilerGenerated]
	public foo()
	{
	}
}
Robert