xsharp.eu • Release of patches for X# - Page 2
Page 2 of 2

Release of patches for X#

Posted: Fri Oct 08, 2021 2:52 pm
by Karl-Heinz
Most of the time the distribution of runtime fixes would work. But sometimes there are compiler/runtime function dependencies. This happens when the compiler generates code that calls runtime functions. E.g. Using the Foxpro dialect, this code currently creates always a PRIVATE and not as expected a PUBLIC memvar.

Code: Select all

FUNCTION Start()
PUBLIC a

// The - correct - VO dialect created code looks like: XSharp.RT.Functions.__MemVarDecl(e"a", _priv: false)
// while the Foxpro dialect created code looks like:  XSharp.RT.Functions.__MemVarDecl(e"a", _priv: true)

// The VO dialect returns correctly 1, while the Foxpro dialect returns 0
? _PublicCount()   

RETURN


btw. The Foxpro dialect issue is already confirmed.

regards
Karl-Heinz