Re: Getting rid of const/immutable

2019-09-15 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Monday, 16 September 2019 at 05:22:14 UTC, Cecil Ward wrote: I have a particular type name and that type may or may not be const and/or immutable. How do I make a new type based on this that is mutable, ie getting rid of both const and immutable, but not knowing what the original type is ?

Getting rid of const/immutable

2019-09-15 Thread Cecil Ward via Digitalmars-d-learn
I have a particular type name and that type may or may not be const and/or immutable. How do I make a new type based on this that is mutable, ie getting rid of both const and immutable, but not knowing what the original type is ? I don’t want to repeat information from the definition of the o

Re: Input engine

2019-09-15 Thread DanielG via Digitalmars-d-learn
On Monday, 16 September 2019 at 02:05:37 UTC, Joel wrote: I was using DSFML 2.1.1[0] for keyboard input, but with the ... Since you still want to use the library - have you looked upstream at the SFML project to see if they are having problems there? Might be worth trying to write a small C/C

Re: Input engine

2019-09-15 Thread Joel via Digitalmars-d-learn
On Sunday, 15 September 2019 at 10:52:43 UTC, rikki cattermole wrote: On 15/09/2019 12:16 PM, Joel wrote: What is a good keyboard input handler or so? Just need one that picks up that a key is down, but not like a word processor. Are you referring to when you hold down a key and multiple cha

Re: Input engine

2019-09-15 Thread rikki cattermole via Digitalmars-d-learn
On 15/09/2019 12:16 PM, Joel wrote: What is a good keyboard input handler or so? Just need one that picks up that a key is down, but not like a word processor. Are you referring to when you hold down a key and multiple characters gets added to the text area? If so, this feature is called aut

Re: Slicing upward

2019-09-15 Thread rikki cattermole via Digitalmars-d-learn
On 15/09/2019 5:06 AM, Brett wrote: On Saturday, 14 September 2019 at 11:39:21 UTC, rikki cattermole wrote: On 14/09/2019 11:34 PM, Brett wrote: I have an algorithm that is most efficiently implement by taking an array and slicing it upward, meaning removing the leading elements. Because the

Questions regarding a port (bindbc-cimgui)

2019-09-15 Thread sytnax via Digitalmars-d-learn
Hi, I'm new to the forum and the D language. I'm also a total newbie regarding sharing stuff on github, so I have questions: Since I want to try to write small games with D as betterC, I have ported cimgui to a bindbc version. I basically took d-cimgui (which didn't work with betterC) and us