AlignC as a keyword

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
idle
Always Here
Always Here
Posts: 5840
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

AlignC as a keyword

Post by idle »

Could you add AlignC as a keyword, I spent an hours padding structures because I forgot about the flag #PB_Structure_AlignC
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: AlignC as a keyword

Post by Fred »

I fail to see how it would have help you if you have forget about such functionality :P . 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 
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: AlignC as a keyword

Post by Quin »

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 :P . 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 
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: AlignC as a keyword

Post by skywalk »

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?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: AlignC as a keyword

Post by Caronte3D »

+1
User avatar
idle
Always Here
Always Here
Posts: 5840
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: AlignC as a keyword

Post by idle »

I could have sworn there was an AlignC I made a macro so no worries until I forget again
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: AlignC as a keyword

Post by mk-soft »

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
User avatar
idle
Always Here
Always Here
Posts: 5840
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: AlignC as a keyword

Post by idle »

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 :P . 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 
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 much
Post Reply