AlignC as a keyword
AlignC as a keyword
Could you add AlignC as a keyword, I spent an hours padding structures because I forgot about the flag #PB_Structure_AlignC
Re: AlignC as a keyword
I fail to see how it would have help you if you have forget about such functionality
. Or may be to rework the help syntax here https://www.purebasic.com/documentation ... tures.html

Code: Select all
Structure <name> [Extends <name>] [Align <numeric constant expression/#PB_Structure_AlignC>]
...
EndStructure
Re: AlignC as a keyword
Restructuring the help[ could be good, yeah. I agree though, I don't think a new keyword would help.
Fred wrote: Sun Jan 07, 2024 10:02 am I fail to see how it would have help you if you have forget about such functionality. Or may be to rework the help syntax here https://www.purebasic.com/documentation ... tures.html
Code: Select all
Structure <name> [Extends <name>] [Align <numeric constant expression/#PB_Structure_AlignC>] ... EndStructure
Re: AlignC as a keyword
I think he meant EnableAlignC like EnableExplicit.
This way all structures will pad accordingly.
I cannot think of the need for multiple padding types within a single app.
Unless different hardware connected to your app requires it?
This way all structures will pad accordingly.
I cannot think of the need for multiple padding types within a single app.
Unless different hardware connected to your app requires it?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: AlignC as a keyword
I could have sworn there was an AlignC I made a macro so no worries until I forget again
Re: AlignC as a keyword
But maybe 'StructureC' like 'ProcedureC' or 'PrototypeC'. But you can also forget them like AlignC
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: AlignC as a keyword
I have really poor memory these days and forget all sorts of things but I was sure there was once an AlignC, it turns out it was a macro in another one of my codes. Align 4 or Align 16 makes sense but Align #PB_Structure_AlignC not so muchFred wrote: Sun Jan 07, 2024 10:02 am I fail to see how it would have help you if you have forget about such functionality. Or may be to rework the help syntax here https://www.purebasic.com/documentation ... tures.html
Code: Select all
Structure <name> [Extends <name>] [Align <numeric constant expression/#PB_Structure_AlignC>] ... EndStructure