MMBasic for Windows - alphas


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4344
Posted: 01:28pm 22 Feb 2022      

  matherp said  
  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


No, but the inc file knows where the original bas file is located and can reference and data from that


I believe that makes an assumption that the .INC file is only being used by one .BAS file which may not be the case for a true library. Unless you are proposing that the user writes code to trawl the .BAS file and parse its #INCLUDE statements.

Best wishes,

Tom
Edited 2022-02-22 23:31 by thwill