I have noticed some slight differences between Ver 2.19 and previous versions when creating console applications using the Visual FoxPro dialect(by template).
In the previous version was the following code:
Code: Select all
? "Hello World! Today is ",ToDay()
The following opinion is based on the fact that I'm a programmer who has been using VFP for a long time, but my knowledge of the .NET world is almost zero!
I would suggest keeping the use of ToDay() and adding the comment that this is a function provided by the Core dialect and that Visual FoxPro can use functions from the Core dialect.
The advantage of this approach is that a VFP programmer such as myself will understand the help better when it is based on the existing help documentation system. I'm assuming that such cross-dialect function calls are allowed, so this tells VFP programmers that it's possible to use the Core dialect to do things in X# that the Visual FoxPro dialect doesn't yet do.
In addition, based on my very limited experience with X#, I would suggest adding the following statement:
Code: Select all
Using Static System.Console && X# new language features :XSharp allows you to use the using statement to link to a static class and call the methods in this class as if they are functions.
Code: Select all
// call the methods of Static System.Console static class
WriteLine("------------------")
WriteLine("After Using Block")
I'm sure this situation exists in other countries as well, perhaps not as dramatically as in China.
Forgive me for what may be reckless advice