Re: Is this code correct?

2023-04-07 Thread z via Digitalmars-d-learn
On Saturday, 1 April 2023 at 15:32:27 UTC, Dennis wrote: On Friday, 31 March 2023 at 13:11:58 UTC, z wrote: I've tried to search before but was only able to find articles for 3D triangles, and documentation for OpenGL, which i don't use. The first function you posted takes a 3D triangle as

Re: DlangUI Layout Justification

2023-04-07 Thread Adam D Ruppe via Digitalmars-d-learn
On Friday, 7 April 2023 at 15:52:02 UTC, Ali Çehreli wrote: I don't know how relevant it is but there is also Hipreme Engine that supports Android: I think the question is if you are doing games vs doing other applications. There's some overlap between game and gui, but not actually that

Re: DlangUI Layout Justification

2023-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 3/9/23 07:09, Ron Tarrant wrote: Many thanks, ryuukk. I'll check it out. I don't know how relevant it is but there is also Hipreme Engine that supports Android: https://forum.dlang.org/thread/fecijdotstuclyzzc...@forum.dlang.org Ali

Re: Code organization, dub, etc.

2023-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 3/13/23 07:30, Joe wrote: > whether DLang (the Foundation and/or the > community) would consider working with the CMake and clang-format > communities to get them to support D in their products That would be great. I hope it will eventually happen. I've used CMake on existing projects only

Re: member func is best choice for pointers?

2023-04-07 Thread Ali Çehreli via Digitalmars-d-learn
On 4/6/23 07:26, a11e99z wrote: > ```d > import std, core.lifetime; > > struct Node { > Node* pNext; > void func() { "Node::func %s".writeln( pNext); } That's a member function, which works with the obj.func() syntax. However, there is another feature of D that is in play here: