Search found 8788 matches

by fxm
Apr 22, 2019 16:39
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 8
Views: 155

Re: Unexpected behaviour of type arrays

Can be further shortened! numCollections = 1 'collection(0).owner = "badidea" 'collection(0).numAlbums = 1 'collection(0).album(0).title = "ABBA Arival" 'collection(0).album(0).numSongs = 2 'collection(0).album(0).song(0) = type("ABBA", "Dancing Queen", 1976, ...
by fxm
Apr 22, 2019 12:37
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 8
Views: 155

Re: Unexpected behaviour of type arrays

Exactly the above badidea's post (first response).
The others are digressions.
by fxm
Apr 22, 2019 12:07
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 8
Views: 155

Re: Unexpected behaviour of type arrays

Referring to the above example of paul doe, defining a cast operator is useless in this use case.
By cons, it would allow the following syntax:
? cast(athing, manythings(0)).x
by fxm
Apr 22, 2019 11:54
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 8
Views: 155

Re: Unexpected behaviour of type arrays

For information on the '->' operator overloading and one classic use case, you can also read the article:
How to Overload the Operator '->' (ptr to member access) and Build a Smart Pointer in FB
by fxm
Apr 20, 2019 15:39
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 6
Views: 372

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

coderJeff wrote:Currently, for our gfxlib2, looks like
fbc-32 on win32 - DirectX - OK
fbc-32 on win64 - DirectX - breaking
fbc-64 on win64 - DirectX - broken, I think. See here
by fxm
Apr 17, 2019 12:39
Forum: General
Topic: Electronic circuit simulation
Replies: 4
Views: 186

Re: Electronic circuit simulation

badidea wrote:The result seems plausible. Anyone who wants to check the calculation steps?
It seems to be good.
by fxm
Apr 16, 2019 13:58
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19142

Re: Wiki improvements

dodicat wrote:Why I never use the wiki help:
..... , I always use the .chm help file.
Me too.
In general, I go on wiki only to make an update!
(Otherwise, I'm using the latest '.chm' version downloaded from http://users.freebasic-portal.de/stw/builds/)
by fxm
Apr 16, 2019 13:43
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19142

Re: Wiki improvements

MrSwiss wrote:Not true any longer.
counting_pine changed that to 3 characters, recently ...
(this is in respect to forum search anyway, and not the wiki)
... and anyway, "get" is one of the common words that do not trigger any search on the forum.
by fxm
Apr 16, 2019 5:03
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19142

Re: Wiki improvements

Thank you. Should I put the general description inside the code block? Everyone is free to document as he sees fit. For my part, I usually put a title (if necessary) above the code box and a general description (if necessary) at the beginning of the code box. I also noticed that the 'tag' {{fbdoc it...
by fxm
Apr 13, 2019 7:43
Forum: General
Topic: Memory allocation study for character data of var-len string
Replies: 11
Views: 1757

Re: Memory allocation study for character data of var-len st

From other thread Speed issue with string concatenation and a solution For this case: sub adding(sg as string) main_string += sg end sub main_string could be passed in sg, which would be same as main_string += main_string. main_string can't be reallocated and also be valid, so a temporary is always...
by fxm
Apr 12, 2019 18:16
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1433

Re: fbGFX: BUG in Paint statement

I copied from the first sentence: Perhaps If the border is drawn with a transparent color (in conjunction with the GFX_ALPHA_PRIMITIVES option flag) and some pixels on it are overdrawn, the resultant (blending) color of these overdrawn pixels can cause a leak point, through which the fill color esca...
by fxm
Apr 12, 2019 18:05
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 418

Re: Speed issue with string concatenation and a solution

7 years ago, I had already written a feature request about this problem: #245 Execution speed optimization of var-len string instruction You observation corresponds to my paragraph 2.3 in this analyse. We can verify that the problem comes back if we dereference a string pointer (even pointing to a l...
by fxm
Apr 12, 2019 16:06
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1433

Re: fbGFX: BUG in Paint statement

there has been a grammatical issue introduced, with the last changes: "the resultant ( blending ) color" portion, should read: "the resultant (blended) color" [it is "past tense"] What does dodicat (a Scottish) think about this wording problem that I copied from his pr...

Go to advanced search