![]() |
Forum Index : Microcontroller and PC projects : Library list....
Author | Message | ||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Hello all. ![]() In this image here: ![]() Why bother to have the list say "End DefineFont" - or whatever - why not just list the routines stored in the library by name - job done? I would have thought that the end definefont(or whatever) is redundant.... ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
I agree! For me this behavior is also irritating. This also applies to the "End CFunctions". Michael causality ≠ correlation ≠ coincidence |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
The interpreter needs both of them because of the way it works. DefineFont #nn (or CFunction xxx, etc) is needed so that the interpreter can get the font number (or CFunction name). End DefineFont, etc is needed because the interpreter needs to locate the end of the construct so that it can skip over it if the program execution runs into it. Also, the interpreter treats the library the same as main program memory. If Define/End are required in main memory then they are also required in the library. Both DefineFont and End DefineFont are converted to tokens so they only take up one byte each. Geoff Geoff Graham - http://geoffg.net |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I think they'd just like the library list to omit them. John |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Hi Geoff, I'm not quite sure if you understand the problem? ![]() This applies only to the LIST command. I would prefer only the headers (omit the bodys and the footers) Library list
DefineFont#2 DefineFont#3 DefineFont#4 DefineFont#5 CFunction CPUSpeed I'm not completely sure if I've missed something. ![]() Regards Michael @John: yes! PS Just to clarify: this is not a big problem to me. ![]() It's only to improve the usability of MMBasic. causality ≠ correlation ≠ coincidence |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Yes, same here - just like the list twofingers posted above. And I too am not bothered by it, really, it would just make it more easily read. Smoke makes things work. When the smoke gets out, it stops! |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Would it be useful to also have the library size listed after each name? Visit Vegipete's *Mite Library for cool programs. |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
If easy to implement, I expect it would help. John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |