Testing out importC with Raylib. Here is the link.
Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
August 07, 2022 importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
August 07, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ki Rill | On 8/6/22 9:09 PM, Ki Rill wrote: >Testing out importC with Raylib. Here is the link. Really nice demonstration! I lament the fact that you have to declare C variables just to get access to the #define colors. Also, IIRC, in the latest master of DMD, there is an attempt to run the system preprocessor automatically. But I'm not sure of the state of it, or if it's in the latest release (which we are having trouble publishing still). -Steve |
August 08, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer wrote: >Also, IIRC, in the latest master of DMD, there is an attempt to run the system preprocessor automatically. But I'm not sure of the state of it, or if it's in the latest release (which we are having trouble publishing still). I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user. But in overall, D has grown and the ecosystem is rapidly evolving. I can see it. This is the best thing that's happening right now. And the Dconf talks were awesome; so many interesting and useful insights. |
August 08, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ki Rill | On Monday, 8 August 2022 at 05:39:29 UTC, Ki Rill wrote: >On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer wrote: >Also, IIRC, in the latest master of DMD, there is an attempt to run the system preprocessor automatically. But I'm not sure of the state of it, or if it's in the latest release (which we are having trouble publishing still). I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user. I think this was recently documented here: https://dlang.org/spec/importc.html#preprocessor Give it a read, try it out and let us know how it works out! |
August 08, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Petar Kirov [ZombineDev] | On Monday, 8 August 2022 at 13:01:46 UTC, Petar Kirov [ZombineDev] wrote: >On Monday, 8 August 2022 at 05:39:29 UTC, Ki Rill wrote: >On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer wrote: >Also, IIRC, in the latest master of DMD, there is an attempt to run the system preprocessor automatically. But I'm not sure of the state of it, or if it's in the latest release (which we are having trouble publishing still). I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user. I think this was recently documented here: https://dlang.org/spec/importc.html#preprocessor Give it a read, try it out and let us know how it works out! It says: You mean the default system cpp preprocessor, correct? I wouldn't be surprised if someone asks for the ability to set their own defaults. |
August 08, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Petar Kirov [ZombineDev] | On Monday, 8 August 2022 at 13:01:46 UTC, Petar Kirov [ZombineDev] wrote: >I think this was recently documented here: https://dlang.org/spec/importc.html#preprocessor Give it a read, try it out and let us know how it works out! Happy to see that. I'll be giving it a test. |
August 12, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On 8/8/22 07:54, jmh530 wrote: > It says: > "Otherwise the cpp preprocessor will be used." > > You mean the default system cpp preprocessor, correct? I think it means the 'cpp' program that exists on (almost?) all Linux systems. Ali |
August 15, 2022 Re: importC | Using D with Raylib directly | No bindings | [video] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ki Rill | On Sunday, 7 August 2022 at 01:09:58 UTC, Ki Rill wrote: >Testing out importC with Raylib. Here is the link. Very cool and important to show how simple this works. Thank you! |