how to determine if a function exists in a class?

2019-10-01 Thread TodNaz via Digitalmars-d-learn
Hello everyone! I have a question: how to determine if a function exists in a class? Is this possible with @pointer tagging?

My dialogue code is not working as it should!

2019-10-20 Thread TodNaz via Digitalmars-d-learn
Hello! I can’t understand ... My dialogue code is not working as it should! He must, if the texture does not exceed the maximum value, add a character, otherwise go to a new line until the text ends. But he constantly makes the transition to a new line. Either I'm stupid, or something is wrong.

sdl 2 - text is not displayed correctly

2020-01-15 Thread TodNaz via Digitalmars-d-learn
Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect characters (with these: ""). And with wstribg and TTF_RendererUNICODE_Blended, the surface has

Re: sdl 2 - text is not displayed correctly

2020-01-16 Thread TodNaz via Digitalmars-d-learn
On Wednesday, 15 January 2020 at 16:28:58 UTC, drug wrote: On 1/15/20 6:26 PM, TodNaz wrote: Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect

sdl 2 - text is not displayed correctly

2020-01-16 Thread TodNaz via Digitalmars-d-learn
Maybe I made a mistake? Sorry, I'm new to this business ... [https://pastebin.com/Yyzg4iZf]

Re: sdl 2 - text is not displayed correctly

2020-01-16 Thread TodNaz via Digitalmars-d-learn
On Wednesday, 15 January 2020 at 16:28:58 UTC, drug wrote: On 1/15/20 6:26 PM, TodNaz wrote: Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect

Find the heir.

2020-03-29 Thread TodNaz via Digitalmars-d-learn
Hello! class A { ... } class B : A { ... } class C : A { ... } A example1; B example2 = new B(...); A = example2; auto heir = A.whoheir(); /// The question in this code is: is it possible to track the class inheritor? Or is it beyond D? Sorry if the question is fool ...