Search found 1570 matches

by paul doe
Apr 23, 2024 3:42
Forum: Beginners
Topic: Count character
Replies: 10
Views: 440

Re: Count character

Löwenherz wrote: Apr 22, 2024 15:42 No sorry misunderstanding I am meaning the result of all counts of characters AS a sum found in the String at the end of example :)
The result of the sum of all counted characters equals the string length...
by paul doe
Apr 23, 2024 3:39
Forum: Beginners
Topic: Dog pattern + gradient
Replies: 4
Views: 277

Re: Dog pattern + gradient

Generally speaking, to center something, you'd use: p = ( w - l ) / 2 Where: p = the resulting centered coordinate w = the extent where you want to center (in your example, this would be the screen width, in chars) l = the length you want to center (in your example, this would be the length of the s...
by paul doe
Apr 16, 2024 23:30
Forum: Beginners
Topic: Simple class example
Replies: 2
Views: 426

Re: Simple class example

FreeBasic supports many neat constructs when you deal with objects, such as constructors, destructors and also properties, and they can all be assigned access rights as well: type Employee public: declare constructor() declare constructor( as string, as string, as integer ) declare destructor() '' G...
by paul doe
Apr 12, 2024 11:35
Forum: General
Topic: Property Definition does not allow STATIC
Replies: 6
Views: 482

Re: Property Definition does not allow STATIC

@wallyg: Do you need to perform some validation of the data in the property? Because if not, then just a static variable suffices...
by paul doe
Apr 03, 2024 21:06
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 25028

Re: Freebasic 1.20.0 Development

At this point why don't you just audit the language for all the crap, broken and obtuse things, gut them, and rebuild them however you like with no regards for what went before (or leave them out altogether) and call it FreeBasic 2.0. Second the motion here. Naturally, it's a lot of work for one pe...
by paul doe
Mar 01, 2024 21:00
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 1054

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

For the last time, I know all this. But I have a hard time figuring out a useful use case for this. Operators be operators; we use them in expressions , we don't pass them as arguments to functions. The only language I can think of that has this feature is Forth, and that only because of its archite...
by paul doe
Mar 01, 2024 12:16
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 1054

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

I know that. I guess I'll have to sit down and think a useful use case for the feature...
by paul doe
Mar 01, 2024 11:15
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 1054

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

What would be a valid use case for this? Either I'm missing something, or I don't see the point of it...
by paul doe
Dec 14, 2023 22:53
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1183

Re: slow to execute after compiling source code

You can add a one-time exclusion of virus scans for the 'FBIDETEMP.exe' file only. I tried this a while back. Turns out it doesn't work, since the file gets deleted after the execution ends. And so the brand new FBIDETEMP.exe is considered a new file and gets scanned anyway :roll: For my PC, it wor...
by paul doe
Nov 14, 2023 17:03
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1183

Re: slow to execute after compiling source code

Turning off real time protection fixed the issue!! However that apparently means leaving it vulnerable to malware. Also it says after a short time it will turn it back on automatically. My indeed. It just shows you why it happens. You shouldn't disable the AV, but you could get the folder of the ex...
by paul doe
Nov 14, 2023 0:59
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1183

Re: slow to execute after compiling source code

Indeed, real-time protection could cause issues with that kind of code. You might try disabling the AV and then run the code again to see if this solves the issue.
by paul doe
Nov 07, 2023 23:11
Forum: Projects
Topic: simple compressor LZg9
Replies: 11
Views: 2669

Re: simple compressor LZg9

No need. Just open a new thread if you want to discuss a different approach :idea:
by paul doe
Nov 07, 2023 22:47
Forum: Projects
Topic: simple compressor LZg9
Replies: 11
Views: 2669

Re: simple compressor LZg9

neil wrote: Nov 07, 2023 21:01 Here's another idea this one works. This will always compress any 8 capital letters down to 5 bytes. No patterns or redundancy are required.
Consider opening your own thread if you're gonna try other methods, so as to not pollute this one, yes?
by paul doe
Oct 03, 2023 14:47
Forum: General
Topic: the POINT(n) function returns a wrong result
Replies: 6
Views: 1647

Re: the POINT(n) function returns a wrong result

I might be missing something, but what is wrong with simply doing a cast to get the expected values? screen 2 window(-10,-30)-(-5,-10) line(-9,-28)-(-6,-24) print"Window x-coordinate of the last point=";cast( long, point(2) ) print"Window y-coordinate of the last point=";cast( lo...
by paul doe
Sep 02, 2023 19:31
Forum: General
Topic: Is &H a compile time literal?
Replies: 10
Views: 1740

Re: Is &H a compile time literal?

Seems to me it is, or it isn't. Your explanation states that it could sometimes be a Literal and sometimes not. This applies not just to &H but to all of the prefixes. Perhaps they should be called that: Prefixes or Type Prefixes. That's what he's telling you: it's a prefix for literals , not f...