Search found 225 matches

by RockTheSchock
Jun 22, 2016 16:02
Forum: Community Discussion
Topic: new keyword suggestion: #package
Replies: 2
Views: 580

new keyword suggestion: #package

I would like to see some sort of simpler package/namespace management. A "#package ..." statement could automatically insert End Namespace before "#include ..." and "Namespace ..." after includes. What do you think? example code package tld.mydomain.mypackage #Include O...
by RockTheSchock
May 26, 2016 6:21
Forum: Game Dev
Topic: Thoughts on writing games with FreeBasic
Replies: 38
Views: 4961

Re: Thoughts on writing games with FreeBasic

]LOL! what I mean is that it almost becomes as easy, or easier than making a 2D game and they all seem to opt for 3D thinking it is 'better'... I think it depends upon the game type and what kind of experience you are trying to develop for the player, for instance, RTS games don't generally benefit...
by RockTheSchock
Feb 19, 2016 19:57
Forum: General
Topic: The BreakPoint on first line cannot be hit if Dim variable in .bi file
Replies: 8
Views: 767

Re: The BreakPoint on first line cannot be hit if Dim variable in .bi file

Maybe fbc should show warning/information if executable code is put into .bi file. Just as a hint.
by RockTheSchock
Dec 17, 2015 12:52
Forum: General
Topic: Best practice on code version numbering?
Replies: 9
Views: 943

Re: Best practice on code version numbering?

Thanks, sounds very good. I have only a fear, my system has reached its limit in term of resident programs. I'v read carrefully the wikipedia article about GIT but nothing is said about the room it occupies on a system. Have you some info about this? Is it a resident program, does it require extra ...
by RockTheSchock
Dec 16, 2015 10:54
Forum: General
Topic: Best practice on code version numbering?
Replies: 9
Views: 943

Re: Best practice on code version numbering?

I'm trying to rationalize my code files names (on disk) appending a version number to them. I wouldn't append numbers to source code files! Use a versioning system like git https://en.wikipedia.org/wiki/Git_%28software%29 With git you can document all changes transparently. You can set branches. Yo...
by RockTheSchock
Dec 10, 2015 7:03
Forum: DOS
Topic: Issues in real DOS on a 486
Replies: 17
Views: 5427

Re: Issues in real DOS on a 486

Maybe you should develop on a modern pc and cross-compile for dos and transfer the exe files per floppy disk. You can buy an USB floppy disk drive for about 15 $. As alternative you could use dosbox with fbc dos version mounting a folder where the source files resides. So you can use an ide of your ...
by RockTheSchock
Dec 04, 2015 12:58
Forum: Community Discussion
Topic: Select case VALUE within array, and sets in general
Replies: 10
Views: 1262

Re: Select case VALUE within array, and sets in general

Please not another quirky syntax. just to allow UDTs / arrays to be used in select case. The only thing needed, is to use the right operators. So for arrays you need the following operators for next step >= <= = If you implement them for udt's you could even use udt's in select cases. Dim value As I...
by RockTheSchock
Dec 01, 2015 11:42
Forum: Community Discussion
Topic: real classes and one pass compiler
Replies: 14
Views: 2085

Re: real classes and one pass compiler

I mean, as far as I understand the usage of interfaces, it's for providing a sort of blueprint, with a skeleton filled with void. But this is possible to do this with base classes. So I must miss something here. Multiple inheritance with classes has many sideeffects which can get very complex. With...
by RockTheSchock
Nov 28, 2015 10:41
Forum: Community Discussion
Topic: real classes and one pass compiler
Replies: 14
Views: 2085

Re: real classes and one pass compiler

So why not simply add at the type keyword level some modifier to specify byval, or byref? Maybe also it's what you have implicitely meant when it has been refered to "real classes" in your introduction about including byref at inner udt fields declaration level. Hi Tourist Trap, well, tha...
by RockTheSchock
Nov 27, 2015 11:18
Forum: Community Discussion
Topic: real classes and one pass compiler
Replies: 14
Views: 2085

Re: real classes and one pass compiler

'aggregation' ('As UDT Ptr'): The Type only contains a pointer to the component object, and this component object has an existence independent of the Type object (before use, this pointer must refer to an already existing component object). No, the pointer must refer to a definition of an object (l...
by RockTheSchock
Nov 26, 2015 23:15
Forum: Community Discussion
Topic: real classes and one pass compiler
Replies: 14
Views: 2085

real classes and one pass compiler

I am far from being a compiler expert, but i just had an idea. I have many situations where i would like to make cyclic references in types without the need to use pointer and type aliases. Wouldn't it be possible to make byref fields in types which hide the pointers to objects. Why is there even a ...
by RockTheSchock
Nov 20, 2015 12:51
Forum: Beginners
Topic: Is there any real Basic implementation for GTK+ ?
Replies: 32
Views: 3062

Re: Is there any real Basic implementation for GTK+ ?

I would say Python is the best beginner language because you are forced to indent your code. To write readable source with less errors you need indentation! There is not the Basic language or the best language. As more advanced programmer you have one prefered language and at least 2-3 additional la...
by RockTheSchock
Nov 17, 2015 13:32
Forum: General
Topic: Contering C++ code to FreeBASIC
Replies: 3
Views: 468

Re: Contering C++ code to FreeBASIC

There is also some space to optimize the algorithm / code. I estimate speed improvements by 30% maybe even more. Now you read byte by byte and write byte by byte. But you could read 8 bytes at once and write one byte at a time ( or other way aorund read single bytes and then write 8 bytes in one chu...
by RockTheSchock
Nov 17, 2015 11:15
Forum: General
Topic: Contering C++ code to FreeBASIC
Replies: 3
Views: 468

Re: Contering C++ code to FreeBASIC

I translated the code. It does compile fine, but i am not sure if I did all boundaries right. So be prepared for crashes because of memory violations at runtime. '//************************************************// '//Function: AntiRotateBmp90D // '// Utility: Transform bmp format bit image into pr...
by RockTheSchock
Nov 06, 2015 12:51
Forum: Beginners
Topic: No values when compiling with -lang fblite
Replies: 2
Views: 624

Re: No values when compiling with -lang fblite

Standard Datatype QB is SINGLE while with FBLite it's Integer

You just need insert as first line:
DefSng A-Z

Go to advanced search