"Include Libary" System
Posted: Mon Apr 19, 2010 4:34 pm
Personally I've been slowly building a include library.
I name them such:
"Windows 1.0.pbi" this contains window/gui related procedures for example.
If I add new procedures or improve existing ones but do not change my internal "API" it becomes "Windows 1.1.pbi"
If things are changed such that compatibility is broken it becomes "Windows 2.0.pbi" etc.
These includes are copied from the include library to the projects include folder so each project is "self contained", a benefit if a include jumps from 1.x to 2.s which could break existing code.
Some includes have dependencies on others, like my UUID that takes UUID/GUID strings and turn them into .GUID and vice versa, or create new ones.
Again the version numbering makes sure to avoid breaking code or make it easy to notice.
It would be much better if the PureBasic team enhanced the IDE to have such include maintenance built in.
I know "modules" have been mentioned in the past but maybe a system like this would work better and be more flexible, or a combination of both?
I name them such:
"Windows 1.0.pbi" this contains window/gui related procedures for example.
If I add new procedures or improve existing ones but do not change my internal "API" it becomes "Windows 1.1.pbi"
If things are changed such that compatibility is broken it becomes "Windows 2.0.pbi" etc.
These includes are copied from the include library to the projects include folder so each project is "self contained", a benefit if a include jumps from 1.x to 2.s which could break existing code.
Some includes have dependencies on others, like my UUID that takes UUID/GUID strings and turn them into .GUID and vice versa, or create new ones.
Again the version numbering makes sure to avoid breaking code or make it easy to notice.
It would be much better if the PureBasic team enhanced the IDE to have such include maintenance built in.
I know "modules" have been mentioned in the past but maybe a system like this would work better and be more flexible, or a combination of both?