Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:03 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Library list....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 02:22am 07 Nov 2015
Copy link to clipboard 
Print this post

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: Germany
Posts: 1593
Posted: 03:24am 07 Nov 2015
Copy link to clipboard 
Print this post

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: Australia
Posts: 3292
Posted: 04:45am 07 Nov 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4044
Posted: 06:35am 07 Nov 2015
Copy link to clipboard 
Print this post

I think they'd just like the library list to omit them.

John
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1593
Posted: 06:44am 07 Nov 2015
Copy link to clipboard 
Print this post

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.Edited by twofingers 2015-11-08
causality ≠ correlation ≠ coincidence
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:38pm 07 Nov 2015
Copy link to clipboard 
Print this post

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: Canada
Posts: 1132
Posted: 08:42am 08 Nov 2015
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4044
Posted: 12:46pm 08 Nov 2015
Copy link to clipboard 
Print this post

If easy to implement, I expect it would help.

JohnEdited by JohnS 2015-11-09
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025