MMBasic for Windows - alphas


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10965
Posted: 01:58pm 22 Feb 2022      

  Quote  LOAD DATA is not usable for a library to independently load its own data because a .INC file doesn't know where it is located


There are no true libraries - this is MMBasic . INC files will inevitably be duplicated and therefore it is not unreasonable to duplicate any data or if you are really worried about it use DATA statements in the inc file with a restore point name that includes the INC name.

Remember, if you provide a composite executable to a user they need all the components and can't be expected to "install" inc files in any specific known location otherwise you are just making life too difficult for them. They just want to unzip a package wherever and have it run without doing anything else.

I remember this was discussed before and my recollection is that the duplication of inc files, however unpalatable for the purist, was a necessary evil for MMBasic
Edited 2022-02-23 00:02 by matherp