Search found 542 matches

by Munair
Nov 12, 2018 14:12
Forum: General
Topic: Free Basic Compilers Version 1.06.0 (08-26-2018) seem broken
Replies: 106
Views: 3600

Re: Free Basic Compilers Version 1.06.0 (08-26-2018) seem broken

The bugs mentioned in the last few posts should be fixed, and fixes are merged in to master. - lbound & ubound work with const arrays - non-const arrays arguments can be passed to const array parameters, (bug fix #823) - the unnecessary const warning on array indexes in const UDT's is suppresse...
by Munair
Nov 12, 2018 14:11
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 1888

Re: Resignation

As a moderator I probably would have locked this thread by now...
by Munair
Nov 12, 2018 14:08
Forum: Tips and Tricks
Topic: Bin/Hex for Floats (Single/Double)
Replies: 6
Views: 126

Re: Bin/Hex for Floats (Single/Double)

I found BIN functions mostly useful for educational purposes to see how a value actually looks like on the CPU registers. Sometimes I also use it to double-check a bit-mask. It might be nice to see how a function like BIN probably works under the hood: dim n as long = 65536 * 16 dim s as string func...
by Munair
Nov 12, 2018 6:30
Forum: Documentation
Topic: Union
Replies: 24
Views: 578

Re: Union

@Munair: I'll take unnecessary posts for 100 Alex... This thread is done and in the future please read the whole thread before posting. fxm used the term exactly as he should. and nowhere in this thread did I read an apology or statement that fxm was absolutely right. With my post I want to make cl...
by Munair
Nov 12, 2018 6:00
Forum: Documentation
Topic: Union
Replies: 24
Views: 578

Re: Union

Did you mean 'priority''? Are we really saving anything by not finishing 2 letters in the spelling? Some need to brush up on their language and do a "google" search first. In Dutch "a priori" is also used and so it is in English and other languages that borrowed from Latin based...
by Munair
Nov 11, 2018 13:37
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 1888

Re: Resignation

marcov wrote:Yes, clearly a desk-jockey. Tons of policies for a non existing problem :-)

I think you've just proven Deltarho's point. If we show mutual respect to each other's ideas and opinions or at the very least ignore them, then discussions like these wouldn't be here in the first place.
by Munair
Nov 11, 2018 12:38
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

The reason is setting up OOP. GTK requires static procedures to call back to. Including such procedures in objects excludes direct access to dynamic members. That's a problem Yes, there is no access possibility (with the implicit 'This') to a non-static member from a static member procedure. But it...
by Munair
Nov 11, 2018 12:35
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

Yes, and this additional attention (define a copy-constructor for such a Type, in order to get a valid instance copy) is not induced by the case where the static procedure is put inside the Type as static member. Indeed, but something shouldn't be put inside the Type just because it is related. OOP...
by Munair
Nov 11, 2018 7:53
Forum: Projects
Topic: BasicStudio for Linux (in development)
Replies: 120
Views: 5951

Re: BasicStudio for Linux (in development)

I have been thinking about that, but considered the project in a too early stage to use a VCS. I don't think that there is such a thing as "too early to use a VCS", especially as there's no need to publish it if you're using e.g. GIT/Mercurial (or any over DVCS), you can upload it to GitH...
by Munair
Nov 11, 2018 7:29
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

fxm wrote:
Munair wrote:Furthermore, using static members in an object may require additional attention if you want a (new) copy of the object instance.

Why ?
[..] you must define for the two cases a copy-constructor (to specifically initialize 'Owner' pointer value).

That is what I meant with additional attention.
by Munair
Nov 11, 2018 7:27
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

For completeness, here is the same example as in my first post of this thread, but now with a static procedure inside the object. ' event handler object type TEvent extends object Handler as sub(byval p as any ptr) Owner as any ptr declare constructor() end type constructor TEvent() end constructor ...
by Munair
Nov 11, 2018 6:46
Forum: Community Discussion
Topic: Crescent Software products for DOS are now PD.
Replies: 8
Views: 332

Re: Crescent Software products for DOS are now PD.

oyster wrote:nice

what if RapidQ and old VB-dos are released to the public

You mean source-code? Microsoft is not known for releasing the sources of their old products. But they are available for download on various sites.
by Munair
Nov 11, 2018 6:43
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

fxm wrote:When one refers to a static member procedure ('handler(...)') in an UDT, the syntax kinds that work for calling such a procedure do not work all for getting the procedure address.

Yes, I'm aware of that.
by Munair
Nov 10, 2018 20:01
Forum: Projects
Topic: BasicStudio for Linux (in development)
Replies: 120
Views: 5951

Re: BasicStudio for Linux (in development)

A basic editor is now up and running. Files can be created, opened, edited and saved in multiple tabs. A fully functional MsgBox has been added so that warnings can be given (when files are not saved) etc. Tabs can be closed and newly created etc. but not moved around yet. The binary can be download...
by Munair
Nov 10, 2018 19:48
Forum: Community Discussion
Topic: FreeBasic Unlike QuickBASIC
Replies: 13
Views: 390

Re: FreeBasic Unlike QuickBASIC

I do not see any fundamental difference with an external static procedure. The static procedure is just encapsulated in the TForm1 namespace. The reason is setting up OOP. GTK requires static procedures to call back to. Including such procedures in objects excludes direct access to dynamic members....

Go to advanced search