Wiki improvements

Forum for discussion about the documentation project.
Post Reply
coderJeff
Site Admin
Posts: 4326
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Wiki improvements

Post by coderJeff »

fxm wrote: Oct 16, 2022 7:12 @Jeff,
I started a topic here: Nested Types and Unions for the new feature and will add information soon.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: Wiki improvements

Post by D.J.Peters »

Not important but an improvement :-)

ff as integer = FreeFile() should be long/ulong FaqPgbloadworkaround or var ff = FreeFile()

byval pal as any ptr = 0 should be ulong ptr KeyPgBsave and KeyPgBload

KeyPgPalette type of parameters are missing complete (maybe index=integer/ulong ,r,g,b = ubyt/ulong)
and in the examples:
Dim As Integer r, g, b
looks on 64-bit a little bit strange to me.

Joshy
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

1)
D.J.Peters wrote: Oct 16, 2022 22:13 ff as integer = FreeFile() should be long/ulong FaqPgbloadworkaround or var ff = FreeFile()
OK

2)
D.J.Peters wrote: Oct 16, 2022 22:13 byval pal as any ptr = 0 should be ulong ptr KeyPgBsave and KeyPgBload
But the 'pal' parameter is declared 'as any ptr' for the two keywords:

Code: Select all

#print typeof(@bload())
#print typeof(@Bsave())
FUNCTION(AS CONST STRING, AS ANY PTR, AS ANY PTR) AS LONG
FUNCTION(AS CONST STRING, AS CONST ANY PTR, AS CONST ULONG, AS CONST ANY PTR) AS LONG

3)
D.J.Peters wrote: Oct 16, 2022 22:13 KeyPgPalette type of parameters are missing complete (maybe index=integer/ulong ,r,g,b = ubyt/ulong)
and in the examples:
Dim As Integer r, g, b
looks on 64-bit a little bit strange to me.
I don't know for the keyword syntaxes because 'Palette()' is not a simple procedure. but OK for the color components in the second example (=> 'ulong' because 'ubyte' does not work) , and the array in the third example (=> 'ulong').
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

SARG wrote: Oct 16, 2022 8:42 @fxm
64bit fbc compiler.
https://users.freebasic-portal.de/sarg/fbc64_inner.zip
Could you please create a new build of fbc64 containing the latest changes regarding Named Types?
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Wiki improvements

Post by SARG »

fxm wrote: Oct 24, 2022 5:02 Could you please create a new build of fbc64 containing the latest changes regarding Named Types?
Done with all the last updates.

Edit: missing updates...
https://users.freebasic-portal.de/sarg/ ... 221024.zip
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

SARG wrote: Oct 24, 2022 6:27 Edit: missing updates...
https://users.freebasic-portal.de/sarg/ ... 221024.zip
Indeed, I have just redone the tests with this latest version and now it seems to work well (it must have been missing before the change this morning very early).
Thanks.
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Wiki improvements

Post by SARG »

fxm wrote: Oct 24, 2022 9:33 (it must have been missing before the change this morning very early).
I built the first one yesterday and this morning I checked but the commit page is not automatically updated when I open the browser.....
I'll do it like for the manual and upload fbc.exe each time a new version is available.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

SARG wrote: Oct 24, 2022 12:24 I'll do it like for the manual and upload fbc.exe each time a new version is available.
This is very good news (especially for me!).
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Wiki improvements

Post by SARG »

@fxm and others interested,

Now I'll use fbc64_lastest.zip so the link remains always the same. :D

https://users.freebasic-portal.de/sarg/ ... astest.zip

Btw exe size is smaller as I have removed -edebug when compiling some files.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

Great !
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

@SARG,

Could you build a new version (.chm) of the documentation, so that I can verify the correct formatting of the new documentation page:
Type (UDT/Alias/Temporary) and Union of the Programmer's Guide.

Thanks in advance.
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Wiki improvements

Post by SARG »

Done.

You can post on discord when there is an update in case I forget to check.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Wiki improvements

Post by fxm »

Thanks.
(I don't like 'discord'!)
Maybe a private message on the forum ?
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Wiki improvements

Post by SARG »

On discord you can exchange in a private way. I send you an invit.
Discord could be time consuming however fine for fast exchanging.
But via PM on the forum pas de problème ;-)
Post Reply