Search found 395 matches

by speedfixer
Sep 12, 2020 17:02
Forum: Beginners
Topic: Initialising an array with many empty elements
Replies: 15
Views: 410

Re: Initialising an array with many empty elements

If this is support for a distributed application: Define/undefine would require shipping a different exe file to your customer to troubleshoot. Not good. A resource data set could be enabled with a proper commandline tail provided to the customer when needed. At least this would instill some extra c...
by speedfixer
Aug 06, 2020 16:54
Forum: Beginners
Topic: Stuck writing a simple bit toggle routine
Replies: 19
Views: 683

Re: Stuck writing a simple bit toggle routine

Question to all: I have been using code like this for awhile - but much more complex. It is in a key event thread. As an example of bit flags, unions, etc - - - anyone see problems with this code? ' bitflags.bas type bflags union allflags as ulong type f1:1 as boolean f2:1 as boolean toohot:1 as boo...
by speedfixer
Jul 20, 2020 8:05
Forum: General
Topic: RND breadth
Replies: 42
Views: 2592

Re: RND breadth

Just stumbled across this. I know this is old and stale, but I hate to think that Albert never got comfortable with anyone's reason why he did not see what he expected. Albert: 2^32 is not half of 2^64. 2^63 is half 2^62 is 1/4 2^61 is 1/8 ... ... ... 2^32 is VERY small next to 2^64. If we allow a p...
by speedfixer
Jun 27, 2020 19:38
Forum: Documentation
Topic: KeyPgPrintPp correction
Replies: 1
Views: 361

KeyPgPrintPp correction

KeyPgPrintPp

Tiny correction needed:

link to Write# should be
https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgWritePp


not
https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgWrite



david
by speedfixer
May 26, 2020 8:15
Forum: Linux
Topic: Strange behavior of input and line input
Replies: 8
Views: 509

Re: Strange behavior of input and line input

I think you are running into several problems at once. It just isn't good practice to set up any loop without a sleep OR an expectation that the loop will exit very quickly. But that is not the problem you are observing. (Also, set a key trap test - example: chr(27) - escape - to terminate your loop...
by speedfixer
Apr 24, 2020 20:10
Forum: General
Topic: Integer vs UInteger comparison
Replies: 12
Views: 647

Re: Integer vs UInteger comparison

I understand how this works. I don't have a question. I do have an example that may be a good display for new users. (FB is still BASIC, most would say.) This would be good in the 'Conversion/Coercion' topic. Feel free to make any change/correction you wish. ' test for signed/unsigned mix ' compile ...
by speedfixer
Mar 13, 2020 23:52
Forum: General
Topic: pointer to UDT type - why doesn't this work? - solved
Replies: 5
Views: 413

Re: pointer to UDT type - why doesn't this work?

OK
Forgot to make the array static.

Thanks
by speedfixer
Mar 13, 2020 22:33
Forum: General
Topic: pointer to UDT type - why doesn't this work? - solved
Replies: 5
Views: 413

pointer to UDT type - why doesn't this work? - solved

data "Theatre Powder Rose",226,212,212,_ "Lotus Pink",234,208,214,_ "Ice Pink",241,225,224,_ "Cake Frosting",249,223,229,_ "Arrowhead White",249,234,235 type colorlist_type n as long s as string r as ubyte g as ubyte b as ubyte end type 'common shar...
by speedfixer
Jan 10, 2020 19:03
Forum: Beginners
Topic: pushing and popping
Replies: 25
Views: 980

Re: pushing and popping

re: getting a list of values You can always get a value from memory the system has allocated to you. If that memory of NOT part of a declared function or variable, it has no useful meaning. By allocating only one position at "dim stack(0)as integer" - only ONE memory position is valid. You...
by speedfixer
Dec 11, 2019 8:58
Forum: General
Topic: Preprocessor question
Replies: 17
Views: 798

Re: Preprocessor question

Saw the original question, couldn't resist: I program for several different platforms, all Linux. This is near the top of my compiler script for large projects. arch_mt_test.bas: ' arch_mt_test.bas ' test for proc arch and multithread; set library paths accordingly ' #include "/rdkl/FB_common/e...
by speedfixer
Oct 19, 2019 9:06
Forum: Documentation
Topic: RGB and RGBA
Replies: 5
Views: 1128

RGB and RGBA

Shouldn't the return value be a ulong instead of uinteger?
by speedfixer
Oct 19, 2019 7:55
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16445

Re: FreeBASIC 1.08 Development

"Nonesense." Agreed. Certainly, not that simple. None of what I said was aimed at you. You have been very diligent, even tolerant, of people with their requests. I did not expect you to try to accommodate some of my expressions of frustration - but you did. Thank you. Truly, YOUR efforts -...
by speedfixer
Oct 19, 2019 7:07
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16445

Re: FreeBASIC 1.08 Development

@Juergen Kuelwein I was not asking for a gui or framework, just the very basic tools that ANY modern gui needs: scalable fonts, minimum. There are several fine *free* (as in no-entanglement license) libraries available. They may not be the best or fastest, but more than good enough. By media, I mean...
by speedfixer
Oct 18, 2019 19:57
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16445

Re: FreeBASIC 1.08 Development

Yes, internal libraries and quality releases are important. FB has been blessed with some outstanding development efforts. There are many reasons why a project can die. Fewer are the reasons that make a project survive. FB does not support any niche. (Other than providing a fast, small efficient exe...
by speedfixer
Oct 18, 2019 19:18
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16445

Re: FreeBASIC 1.08 Development

@caseih & @angros47 " ... What about other modern features like ... " This is not the place to reiterate that you disagree with each other frequently. @angros47: ... It would require way too much developer resources, but embedding both a C and C++ compiler (and preprocessor) into FB .....

Go to advanced search