[Implemented] New Datatypes

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] New Datatypes

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

1)
Long Integer = DoubleLong(8Bytes size) ;For example: MyLongInt.i
2)
Double Float = Real ( (8Bytes size) ; for example: MyDouble.d
3)
Structures with Constant Characters , for example

Structure MyOwn
FirstName.c[10]
LastNasme.c[15]
ID.l
EndStructure

4) Again: unsigned bytes or the Datatype .c (As one character)


Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

>Long Integer = DoubleLong(8Bytes size) ;For example: MyLongInt.i

.i looks more like integer and so it looks like a
DWORD with 4 Bytes.

>3) Structures with Constant Characters , for example
>
>Structure MyOwn
>FirstName.c[10]
>LastNasme.c[15]
>ID.l
>EndStructure
>
>4) Again: unsigned bytes or the Datatype .c (As one character)

Thats all possible with v3.0 and the .b type.

The important thing why something like .c(har)
is needed, is that you can access this chars
as a fixed length string:

Code: Select all

MyOwn\FirstName = "    Danilo"
cya,
...Danilo

(registered PureBasic user)

Edited by - Danilo on 27 March 2002 22:06:58
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

Long Int or perhaps a Double Long is a quad.
(Quadriple Word) So the suffix should be .q

Structure Siggi1
b1.b[10]
EndStructure

works but,

SG.Siggi1
SG\b=" 1"

did Not.So the Solution for Constant Strings did not work.


Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Thats what i said, Siggi.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Stan.
...
Thats all possible with v3.0 and the .b type.
...

cya,
...Danilo
Are you back FROM the future ? I mean some time when v3.0 is
available ...
Or is it that will be possible with v3.0 ?



Learning and Love are what life is all about ... [ PB. registered user ]
Post Reply