Struct value either resets, or not getting passed correctly

2023-11-19 Thread solidstate1991 via Digitalmars-d-learn
https://github.com/ZILtoid1991/pixelperfectengine/blob/ed93bec15deea042516615e73c57d137a2c1f762/pixelperfectengine/src/pixelperfectengine/scripting/lua.d#L98 Struct `LuaVar` seems to work for the most part, however, at certain point, the value seems to be reset to zero, or not being passed to

cannot find source code for runtime library file 'object.d'

2023-11-19 Thread denis via Digitalmars-d-learn
``` $ zypper install dmd $ dmd main.d Error: cannot find source code for runtime library file 'object.d' dmd might not be correctly installed. Run 'dmd -man' for installation instructions. config file: /etc/dmd.conf $ cat /etc/dmd.conf ; ; dmd.conf file for dmd ; ; dmd will look

Re: D: How do I pipe (|) through three programs using std.process?

2023-11-19 Thread kdevel via Digitalmars-d-learn
On Saturday, 18 November 2023 at 18:09:53 UTC, BoQsc wrote: Latest iteration on this thread. Limitations: * pipes through two programs. * very verbose, hard to use. What exactly are you trying to achieve? ``` import std; import std.process; version (Windows) { enum Find = "find"; }

Re: How to write an interface but with different signatures

2023-11-19 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, November 19, 2023 1:13:16 AM MST Chris Katko via Digitalmars-d- learn wrote: > I know that sounds stupid on the face of it. An interface > shouldn't change. But consider this: > > A frame timer and a clock timer(seconds) that re-use > functionality from a parent class/interface. > > ```

How to write an interface but with different signatures

2023-11-19 Thread Chris Katko via Digitalmars-d-learn
I know that sounds stupid on the face of it. An interface shouldn't change. But consider this: A frame timer and a clock timer(seconds) that re-use functionality from a parent class/interface. ``` class timerType { void start() = 0; void stop() = 0; void