MMBasic for Windows - alphas


Author Message
thwill

Guru

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

  matherp said  
  Quote  it is just about whether Peter can be persuaded to implement sufficient CSUB support so that they could be used as data blobs like they can on the other MMBasic platforms .


The answer is no. It is a misuse of the command, confusing to users and illogical to document. It is so easy to load binary data from file that it makes no sense to create a separate mechanism. Read also does the job perfectly adequately and with some sensible naming of restore points should not be an issue with include files.

Fair enough, but you recognise that 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 ... or to put it another way the .INC file has already been inlined and that context is lost by the time any LOAD DATA command within is executed.

I note that PureBasic can IncludeBinary data but that would also require you to support .INC files including other .INC files (which isn't particularly difficult), but I'm not trying to get you to add new features to MMB4W beyond those supported by the CMM2, afterall the goal is compatibility.

  Quote  It is a misuse of the command, confusing to users and illogical to document.

You are the one who taught me how to do it .

Best wishes,

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