[Implemented] Byte arrays outside structures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

[Implemented] Byte arrays outside structures

Post by El_Choni »

MyFixedLengthString.b[length] outside structures, makes porting C code typeless ;)
El_Choni
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

lost me...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Kind of wished for here too: viewtopic.php?t=7853 Maybe have the char (var.c) type work outside structs aswell. :)
--Kale

Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

oh okay, i was confused by the 'typeless' part...

sounds a bit like my pet subject: fixed length strings :-)

alpha.c[12]="123456789012"
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes, but I don't think we need a new type, do we? After all, they also use "char" for bytes in C.
El_Choni
Post Reply