[Implemented] .CHAR .ASCII .UNICODE

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

[Implemented] .CHAR .ASCII .UNICODE

Post by blueznl »

Even though I prefer .ub over .a and .uw over .u, it's still not up to me...

Anyway, we have standard structures such as

Code: Select all

*a.BYTE         ; use *a\b
*b.WORD         ; use *b\w
*c.LONG         ; use *c\l
*d.INTEGER      ; use *d\i
*e.FLOAT        ; use *e\f
*f.DOUBLE       ; use *f\d
*g.STRING       ; no, sorry, there's no *g\s
*h.QUAD         ; use *h\q
... but none for...

Code: Select all

*i.CHAR         ; use *i\c
*j.ASCII        ; use *j\a     or even better use *j.UBYTE and *j\ub
*k.UNICODE      ; use *k\u     or even better use *k.UWORD and *k\uw
( The above is also the reason I'd rather have .ub as opposed to .a as in this thread http://www.purebasic.fr/english/viewtopic.php?t=38532 , I've tried to show the difference in 'readability' there... I've linked to it because I think it's pretty relevant, I just hope the devs will forgive me I did so :-) )
( 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... )
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Its called .Character, not .Char. The other two are missing so far which will be corrected.

And btw, repeating your "ub" argument all over the forum won't help you the tiniest bit :roll:
quidquid Latine dictum sit altum videtur
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

freak wrote: And btw, repeating your "ub" argument all over the forum won't help you the tiniest bit :roll:
It was not my intention to cause discomfort (well, perhaps a little, I admit :-)) but it's just bothering me as I like PureBasic that much... That it ended up in multiple threads was not intentional, I just referenced to the other post(s) as I thought that would explain it better.

Let me see...

- one thread to discuss the .a / .u issue
- one thread to indicate missing counterparts for .a / .u like there is for .b
- one reply in a thread where I misunderstood the request
- one thread about macros that relates to .a / .u

I think you're a bit harsh about it, to be honest... I know it's not my call, and I don't want to attack the pbdev team, I just feel it's... wrong.

And I fear I'm passionate enough to mention that. Oh well... :roll: It's a bit like the expression evaluation thingy, I understand it doesn't have your priority, yet it just drives me crazy and it's hard for me to stay silent when that happens :oops:

Now I have to wait until the 128 bits version before anyone starts listening to me... weheheheheheheeeee :cry: At least then I can gloat: 'told you so' :wink:
( 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... )
Post Reply