Search found 2788 matches

by Tourist Trap
Jan 04, 2020 9:30
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

No, this is not the direction to go. Is there a way to do something by adding a destructor in the encapsulated fake udt? Then, seems to me, in any case, that there would be some room reserved for the an extra integer. Maybe worth a try. Edit(2): This below worked ... and tests the integer ahead. Sa...
by Tourist Trap
Jan 03, 2020 20:47
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

Hello TT, you've been away for a while? The only non trivial thing about mine is the silly names I give to the variables in the macro. Hi dodi! You always in the breach I can see :) For me, been kept stuck with passing exams for certification at work... Doing PyQT and VB stuff, in the good days, an...
by Tourist Trap
Jan 03, 2020 20:30
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

I'll let you all think a little more before I reveal my last clue. I think I'm wrong, I just do the job from inside a UDT and pray for that the UDT is smarter than me, and he certainly is. type DESTRUCTABLE_UDT declare destructor() as integer ii end type destructor DESTRUCTABLE_UDT() this.ii = -1 e...
by Tourist Trap
Jan 03, 2020 19:34
Forum: Beginners
Topic: Configurable source code beautifier for FB
Replies: 10
Views: 2116

Re: Configurable source code beautifier for FB

Hi, I heard that *Geany* did that in the past. I can't be sure since it was some linux users speaking.
A search in the forum with beautify keyword may well return something anyway.
https://www.geany.org/
by Tourist Trap
Jan 03, 2020 19:27
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

Yes, but it is the same method than the dodicat's proposal: not safe. (if there is no destructor, this accesses an un-allocated memory) Ah yes... So what about this? getting, ice or warmer ? type TEST as DESTRUCTABLE_UDT uu end type dim as TEST ptr tt = new TEST[1] ? *cast(integer ptr, @(tt->uu) - ...
by Tourist Trap
Jan 03, 2020 19:02
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

More simply, if an UDT has a destructor (explicit or implicit), the destructor can be called on any UDT instance 'u' : u.Destructor() 'compiles otherwise, compilation error. I see. So I think I get it (still not with the macro but can see that after). This returns 1: type DESTRU...
by Tourist Trap
Jan 03, 2020 18:23
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24845

Re: FreeBASIC syntax challenge games

]Your proposal is a good start and reveals my second clue which I have now added in my initial post (see https://www.freebasic.net/forum/viewtopic.php?p=267129#p267129), lowering the force to 3. Hi fxm, I don't claim being right, but while making a modest try, here I found something I found funny a...
by Tourist Trap
Jan 03, 2020 17:52
Forum: Game Dev
Topic: ASCII 3D in browser !
Replies: 1
Views: 203

Re: ASCII 3D in browser !

Ahahah, good find!
And that's FAST !
by Tourist Trap
Jan 03, 2020 17:50
Forum: Community Discussion
Topic: Dry Christmas.
Replies: 14
Views: 622

happy 20_20 folk!

It's about Christmas, so maybe not too a bad place to wish everyone here a happy 20_20 new (dry?) year. Can't wander around here too much unfortunately! Happy anyway to pass a head and listen to the breeze of the fb forum. Don't know if chineese have or not definitely settled down around. The forum ...
by Tourist Trap
Oct 19, 2019 12:44
Forum: Beginners
Topic: Arithmetic overflow handling
Replies: 4
Views: 449

Re: Arithmetic overflow handling

I am currently maintaining source code written in Visual Basic 6. The author has written a checksum calculation routine which accounts for overflows. He does this by using a 32-bit variable to store the result of each 16-bit addition, and then subtracts 0x10000 from the 32-bit variable whenever the...
by Tourist Trap
Oct 19, 2019 12:31
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 119
Views: 7642

Re: FreeBASIC 1.08 Development

All those, who fear adding new features would bloat FB in an unacceptable way, should know, that the compiler is clever enough to add only what´s needed to an executable. In other words, more features doesn´t necessarily mean bigger executables or longer compile times. On the other hand every new f...
by Tourist Trap
Oct 19, 2019 12:08
Forum: General
Topic: YouTube increases FreeBASIC performance (solved)
Replies: 6
Views: 304

Re: YouTube increases FreeBASIC performance

This is normal. Default Windows settings are power saving. The increased demand on CPU causes the CPU to increase its frequency. The algorithms for that are complex and can't always be predicted easily. You can however indicate that you want a higher performance profile (e.g. for benchmarking). Go ...
by Tourist Trap
Oct 19, 2019 11:20
Forum: Community Discussion
Topic: [offtopic]What was at Jul 24, 2019 something special ?
Replies: 16
Views: 7192

Re: [offtopic]What was at Jul 24, 2019 something special ?

badidea wrote:At this rate, freeBASIC will be the most popular computer language soon.

FB is simple, powerfull, that's all that people need after all :)
(nice graphic)
by Tourist Trap
Oct 19, 2019 11:16
Forum: Game Dev
Topic: best sea shore sim ever
Replies: 3
Views: 7166

Re: best sea shore sim ever

chung wrote:i posted this video of "best sea shore sim ever" and it is in freebasic

=> https://www.youtube.com/watch?v=w-4jKUpNYwA

:)
That's very relaxing, thanks!
by Tourist Trap
Oct 19, 2019 11:09
Forum: Tips and Tricks
Topic: Quick run tool - Windows
Replies: 20
Views: 2137

Re: Quick run tool - Windows

Use this to run code previously written or copied code from the forum. Keep this file in it's own folder, there are three .txt files written. I see many users have a stash of fb compilers. Add some of your favourites and choose one from your list (An idea from member deltarho). Mainly quick compile...

Go to advanced search