Re: Member is @disable this(this), parent uncopyable

2019-03-22 Thread James Blachly via Digitalmars-d-learn
On 3/22/19 9:24 AM, Alex wrote: On Friday, 22 March 2019 at 12:08:39 UTC, James Blachly wrote: First, how do we deal with toString, std.format, writeln, etc. with un-copyable objects, when it is only a member that is uncopyable?  In my case I got around this by creating a pointer and moving

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 16:40:31 UTC, number wrote: writeln("The text entry box holds: ", fontButton.getFontName()); Again, thank you for catching typos.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 13:58:48 UTC, number wrote: I think it works in this scenario because private in D works on the module/file level. By gar, you're right. I hadn't even looked into this because I assumed it was the same as PHP and C++. Thanks for pointing this out.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 13:17:23 UTC, number wrote: Not sure about .md or file version, but there are no links in the actual blog post: http://gtkdcoding.com/2019/02/15/0010-checkbutton.html It's fixed now. and apparently also not in in this .md file:

Calling D library from other languages on linux using foreign threads

2019-03-22 Thread tchaloupka via Digitalmars-d-learn
I've searched a lot at it should be working at least on linux, but apparently is not or I'm doing something totally wrong.. Our use case is to call shared D library from C# (.Net Core) and from different threads. What I've read about this, is that foreign thread should be registered by

Re: Shared library loading and static constructor

2019-03-22 Thread Sobaya via Digitalmars-d-learn
On Friday, 22 March 2019 at 11:00:32 UTC, Andre Pany wrote: On Friday, 22 March 2019 at 10:51:58 UTC, Sobaya wrote: [...] As far as I know different to windows, linus will not search current working directory for a.so. if this is the issue here, you have different possibilities. You could

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread number via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 12:33:08 UTC, Ron Tarrant wrote: Tuesday again. This blog post is about invisible Entry widgets and the FontButton. Really stimulating stuff and you'll find it at: http://gtkdcoding.com/2019/03/19/0019-disappearing-text-entry.html A little copy/paste glitch..

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread number via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: As a side note, in 0004 you say: We can still call the constructor, even though strictly speaking it’s private, because by using ‘new MyButton()’ the constructor isn’t being called directly, but as part of a lower-level process

Re: Member is @disable this(this), parent uncopyable

2019-03-22 Thread Alex via Digitalmars-d-learn
On Friday, 22 March 2019 at 12:08:39 UTC, James Blachly wrote: I have a struct S with member containers.UnrolledList [1]. UnrolledList is @disable this(this), but this unfortunately makes my struct S also un-copyable, which now breaks some of my debugging statements which rely on toString, as

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread number via Digitalmars-d-learn
On Friday, 22 March 2019 at 11:19:56 UTC, Ron Tarrant wrote: Hmm... I'm not sure why the links didn't show up for you. I just double-checked and they're in the .md file and version of the file has been in place for at least 10 days. Still, no harm in having them on this forum as well. Thanks

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
Also forgot... It's Friday again and time for another gtkDcoding blog post. In today's episode, we slap an image onto a Timmy the Button's face, then do a switch up to keep poor Timmy off balance. You can tune in here: http://gtkdcoding.com/2019/03/22/0020-image-buttons.html

Member is @disable this(this), parent uncopyable

2019-03-22 Thread James Blachly via Digitalmars-d-learn
I have a struct S with member containers.UnrolledList [1]. UnrolledList is @disable this(this), but this unfortunately makes my struct S also un-copyable, which now breaks some of my debugging statements which rely on toString, as writeln, format, etc. all copy the object. This leaves me in

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 21:34:26 UTC, Michelle Long wrote: I'd suggest adding pictures! Oops! Forgot to say... I get why you want images. You were asking about animation the other day, so obviously you're a visual artist. So am I and I know how drawn I am to imagery and I imagine

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 21:34:26 UTC, Michelle Long wrote: I'd suggest adding pictures! It's very easy to take a screen shot and not much harder to link them and they offer far more interest. You're the second person to suggest this, so I'll explain my reasoning. I assure you, it's

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 10:02:24 UTC, number wrote: On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: another post on the gtkDcoding blog. 0013 says ... with *setTooltipText()*. Maybe a formatting error? Yup, it was. I'm still trying to break the habit of putting optional

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 20:49:07 UTC, number wrote: On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: another post on the gtkDcoding blog. 0010 says Here’s the code file. Here’s a second code file for you. but no links. I guess it's

Re: Shared library loading and static constructor

2019-03-22 Thread Andre Pany via Digitalmars-d-learn
On Friday, 22 March 2019 at 10:51:58 UTC, Sobaya wrote: I fail to load the shared library created in a specific situation, but I do not know the cause. a.d import b.d b.d static this() {} for above 2 files, I created shared library by following command. dmd a.d -shared

Shared library loading and static constructor

2019-03-22 Thread Sobaya via Digitalmars-d-learn
I fail to load the shared library created in a specific situation, but I do not know the cause. a.d import b.d b.d static this() {} for above 2 files, I created shared library by following command. dmd a.d -shared -of=a.so And I ran below code, but the library is not

Re: Reading data from the network without knowing the size of the buffer that is coming

2019-03-22 Thread Vladimir Panteleev via Digitalmars-d-learn
On Thursday, 21 March 2019 at 16:54:01 UTC, Roman Sztergbaum wrote: I would like to get rid of the "ubytes[256]" because I do not know the size of the data that is comming, I would like to read the entire buffer that I send at once. Can someone point me? If you do not know the size of the

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread number via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: another post on the gtkDcoding blog. 0013 says ... with *setTooltipText()*. Maybe a formatting error? Thanks again for the Blog. FYI: I also had dropped a note in some of the previous gtkdcoding forum threads