Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Ron Tarrant via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:45:24 UTC, Jacob Carlborg wrote: On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote: class DSingleton { immutable DSingleton instance = new DSingleton; } Should of course be `static`: class DSingleton { static immutable DSingleton instance

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote: class DSingleton { immutable DSingleton instance = new DSingleton; } Should of course be `static`: class DSingleton { static immutable DSingleton instance = new DSingleton; } -- /Jacob Carlborg

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:26:33 UTC, Jacob Carlborg wrote: If it's enough with CTFE compatible code in the constructor, the following is a much simpler version: class DSingleton { private __gshared DSingleton instance = new DSingleton; DSingleton get() { return

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On Monday, 23 March 2020 at 10:02:48 UTC, Ron Tarrant wrote: Today starts a new series I'm calling Snippets and it's about various D-specific stuff that may come in handy when building a GUI. You can find it right here: https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html If it's

Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread drug via Digitalmars-d-announce
On 3/23/20 1:02 PM, Ron Tarrant wrote: Today starts a new series I'm calling Snippets and it's about various D-specific stuff that may come in handy when building a GUI. You can find it right here: https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html Thank you for you efforts! I'm

Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Ron Tarrant via Digitalmars-d-announce
Today starts a new series I'm calling Snippets and it's about various D-specific stuff that may come in handy when building a GUI. You can find it right here: https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html