Page 1 of 1
Small wishes for the future
Posted: Sat Jul 30, 2022 10:57 am
by ccode_new
My wishes for the future. Creation of different string types.
By default, there is a Unicode type, but I would like there to be a UTF8 or ASCII type as well.
Without utf8 or ascii conversion.
Code: Select all
;without this circumstance:
Procedure c_str(txt.s) ;or UTF8()
Protected *c.Character = AllocateMemory(MemoryStringLength(@txt))
PokeS(*c, txt, -1, #PB_UTF8)
ProcedureReturn *c
EndProcedure
I also want an array creation similar to C.
Example:
Code: Select all
Dim c.i(5) = {1, 2, 3, 4, 5}; //similar
Re: Small wishes for the future
Posted: Sat Jul 30, 2022 11:30 am
by STARGÅTE
ccode_new wrote: Sat Jul 30, 2022 10:57 am
My wishes for the future. Creation of different string types.
By default, there is a Unicode type, but I would like there to be a UTF8 or ASCII type as well.
Without utf8 or ascii conversion.
Please look here:
Pseudotypes
Further, PureBasic uses internaly unicode only, because it handling additional types requires alot of work. Therefore, the e.g. ascii-support was removed years ago:
Forum post:
PureBasic 5.50 final is out !.
Blog article:
Support for Ascii compilation ends after the next LTS cycle
ccode_new wrote: Sat Jul 30, 2022 10:57 am
I also want an array creation similar to C.
Feature Requests and Wishlists:
Re: Small wishes for the future
Posted: Sat Jul 30, 2022 11:52 am
by ccode_new
Hi STARGÅTE,
p-utf8,.. sometimes not working correctly.
Different String-Types ..
Or a compiler directive with which one can switch the internal handling of the character strings from unicode to utf8 or ascii.
Re: Small wishes for the future
Posted: Sat Jul 30, 2022 2:37 pm
by Little John
ccode_new wrote:p-utf8,.. sometimes not working correctly.
Can you post a proper bug report showing that?
ccode_new wrote:Or a compiler directive with which one can switch the internal handling of the character strings from unicode to utf8 or ascii.
STARGÅTE already answered this point:
STARGÅTE wrote:handling additional types requires alot of work. Therefore, the e.g. ascii-support was removed years ago
Re: Small wishes for the future
Posted: Mon Aug 01, 2022 7:34 pm
by ccode_new
It's a wish for the future, even if it's a lot of work.
Re: Small wishes for the future
Posted: Mon Aug 01, 2022 7:53 pm
by Little John
ccode wrote:
It's a wish for the future, even if it's a lot of work.
No, it is the wish to get the past back. And that is simply not going to happen. The discussion took place here a few years ago.