Got an idea for enhancing PureBasic? New command(s) you'd like to see?
-
Leonhard
- User

- Posts: 55
- Joined: Fri Jun 16, 2006 7:43 am
Post
by Leonhard »
With the command '
InsertStructure' you can insert a structure in a structure:
Code: Select all
Structure Struc1
bVar1.b
lVar2.l
sVar3.s
EndStructure
Structure Struc2
sName.s
InsertStructure Struc1
EndStructure
the same as
Code: Select all
Structure Struc1
bVar1.b
lVar2.l
sVar3.s
EndStructure
Structure Struc2
sName.s
bVar1.b
lVar2.l
sVar3.s
EndStructure
With '
SubStructure' you can mace a Structure in a Structure:
Code: Select all
Structure Struc
sValue.s
SubStructure SubName
lVar.l
EndSubStructure
EndStructure
the same as
Code: Select all
Structure _Struc_SubName
lVar.l
EndStructure
Structure Struc
sValue.s
SubName._Struc_SubName
EndStructure
-
freak
- PureBasic Team

- Posts: 5940
- Joined: Fri Apr 25, 2003 5:21 pm
- Location: Germany
Post
by freak »
Something similar to 'InsertStructure' can be allready done with the 'Extends" keyword.
quidquid Latine dictum sit altum videtur
-
Leonhard
- User

- Posts: 55
- Joined: Fri Jun 16, 2006 7:43 am
Post
by Leonhard »
freak wrote:Something similar to 'InsertStructure' can be allready done with the 'Extends" keyword.
Yes, but it is only on the front on the Structure.
-
Kale
- PureBasic Expert

- Posts: 3000
- Joined: Fri Apr 25, 2003 6:03 pm
- Location: Lincoln, UK
-
Contact:
Post
by Kale »
Why would you need these new commands?
--Kale

-
Leonhard
- User

- Posts: 55
- Joined: Fri Jun 16, 2006 7:43 am
Post
by Leonhard »
I need this commands why I use this crabwise.
I wrote this in many programms crabwise and I would wrote this faster.
So PureBasic have complex macros, I can wrote this.
comment:
my english is not very good.