Small wishes for the future

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
ccode_new
User
User
Posts: 21
Joined: Sat Jul 30, 2022 10:39 am

Small wishes for the future

Post 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
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Small wishes for the future

Post 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:
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
ccode_new
User
User
Posts: 21
Joined: Sat Jul 30, 2022 10:39 am

Re: Small wishes for the future

Post 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.
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Small wishes for the future

Post 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
User avatar
ccode_new
User
User
Posts: 21
Joined: Sat Jul 30, 2022 10:39 am

Re: Small wishes for the future

Post by ccode_new »

It's a wish for the future, even if it's a lot of work.
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Small wishes for the future

Post 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.
Post Reply