Re: Advice on converting archive files from 3.1.1 to 4.0
- Posted by bernie Mar 24, 2009
- 853 views
I thought some general advice on where to start when converting library files from the archive to work with 4.0 might be helpful.
As I see it there are basically no syntax changes syntax changes which should have any effect. All the new keywords and constructs are additive rather than subtractive of v3.
Namespaces
The problem seems to be namespaces ... and I understand the incompatible to arise for the following reasons:
Because of :
- the resolution of forward references in v4; and because
- included files don't have access to the namespace of the file which includes them (or any library files that the calling file has included);
it is necessary to specifically include each subfile which the library relies on at its start .. and so on down the line for each of the files which it includes.
(Perhaps this might be solved by a special version of include called include_compatible which resolves the namespaces in the previous way? )
Are there any other gotchas or elements that fundamentally change the way an existing v3 program is implemented in v4 that would cause it to break?
(sorry if this topic has been covered elsewhere but I haven't been able to find it in the forum)
Jansek
(thanks for all the fantastic advice people have taken the trouble to put on this forum. It's appreciated)
Also:
ver 4.0 keyword names and function names may conflict with
names used in the ver. 3.11 or older code.