December 24, 2014
On Wednesday, 24 December 2014 at 09:22:17 UTC, Kagamin wrote:
> According to javascript convention, if you stored a delegate in object's property, d.foo.bar("hello! ") is still a method `bar` called on a value from property `foo`, it's forwarded internally to the delegate when `bar` happens to be a property.

Yeah, it doesn't exactly work like that in D though due to this and @property being different.

I do have a way to handle the this:

foo.bar._function = (var _this, var[] args) { };

The _function is the internal representation - that's what's auto-generated when you assign a regular D function to it. But since D doesn't have a dynamic this keyword like javascript (which is good btw!), you can't access it unless you write a function in that form directly.

Like JS though, the var type does have a .apply() method which calls in that form.

My little script language does have a JS style this which works the same way. (My language isn't javascript - I changed a few things, removed some, added others, but it is close enough that it shouldn't be too surprising to a javascript user.)



What's disappointing with D's @property is that it doesn't actually do anything. All the foo.bar on var calls @property ref var opDispatch(string name)(). That way, it can get and set a value in a single go (returning ref means some things look silly, like returning null is done as var a = new var; *a = null; return *a; .... yes, a heap allocated null. But then it can be returned as ref and reassigned etc. without extra work. If you want efficiency, keep away from the dynamic type!)

But then calling the returned var takes the extra parens since the first set just calls opDispatch... which is what we need to do anyway to just get the var!
December 24, 2014
Just make opDispatch accept zero or more arguments, when zero arguments are passed, it works as a property, when more arguments are passed, it works like a method call, no need for @property.
December 24, 2014
On Wednesday, 24 December 2014 at 16:19:16 UTC, Kagamin wrote:
> Just make opDispatch accept zero or more arguments, when zero arguments are passed, it works as a property, when more arguments are passed, it works like a method call, no need for @property.

That doesn't work with functions that take zero or one arguments:

obj.foo(); // still calls opDispatch, not the returned property

obj.foo(bar); // indistinguishable from obj.foo = bar


With the ref return getter, pretty much everything else works right, but these two cases are still ambiguous.
December 29, 2014
On Tuesday, 23 December 2014 at 00:25:33 UTC, Walter Bright wrote:
> On 12/22/2014 12:59 PM, Iain Buclaw via Digitalmars-d wrote:
>> On 22 December 2014 at 20:52, Walter Bright via Digitalmars-d
>> <digitalmars-d@puremagic.com> wrote:
>>> On 12/22/2014 9:40 AM, Adam D. Ruppe wrote:
>>>>
>>>> By this time last year, dconf 2014 preparations were already under way but
>>>> I
>>>> haven't heard anything this year. Is another one planned?
>>>
>>>
>>> Yes. Still working on getting confirmation of the date.
>>
>> You mean to say that it's moving from it's usual time slot next year?
>> (Weekend before spring bank holiday)
>>
>
> Looks like it'll be May 27-29.

Hi

I've recently started programming in D and I have set up a London meetup group - http://www.meetup.com/London-D-Programmers/

I'm interested in coming to the next D conference. Please let me know if there is anything I can do to help out. I've been working on IDE support for intellij here: https://github.com/kingsleyh/DLanguage

which I thought might be an interesting topic for a brief presentation. Although I guess it depends on the audience at these conferences.

Will the next one be in the same place? I'm based in London - I guess it's not going to be in London?

December 30, 2014
On 12/29/2014 3:37 AM, Kingsley wrote:
> I'm interested in coming to the next D conference. Please let me know if there
> is anything I can do to help out. I've been working on IDE support for intellij
> here: https://github.com/kingsleyh/DLanguage

The best thing you can do is submit a speaking proposal.

> which I thought might be an interesting topic for a brief presentation. Although
> I guess it depends on the audience at these conferences.
>
> Will the next one be in the same place? I'm based in London - I guess it's not
> going to be in London?

It'll be at Utah Valley University:

http://www.uvu.edu/visitors/aboutuvu/
December 30, 2014
On Tuesday, 30 December 2014 at 03:38:08 UTC, Walter Bright wrote:
> It'll be at Utah Valley University:

OOh, I might not be the only person there wearing a tie this time!
December 30, 2014
On 30 Dec 2014 03:40, "Walter Bright via Digitalmars-d" < digitalmars-d@puremagic.com> wrote:
>
> On 12/29/2014 3:37 AM, Kingsley wrote:
>>
>> I'm interested in coming to the next D conference. Please let me know if
there
>> is anything I can do to help out. I've been working on IDE support for
intellij
>> here: https://github.com/kingsleyh/DLanguage
>
>
> The best thing you can do is submit a speaking proposal.
>
>
>> which I thought might be an interesting topic for a brief presentation.
Although
>> I guess it depends on the audience at these conferences.
>>
>> Will the next one be in the same place? I'm based in London - I guess
it's not
>> going to be in London?
>
>
> It'll be at Utah Valley University:
>
> http://www.uvu.edu/visitors/aboutuvu/

Where's the announcement? (sorry if you already have, I am yet to see it).

Iain.


December 30, 2014
On 30 Dec 2014 08:59, "Iain Buclaw" <ibuclaw@gdcproject.org> wrote:
>
>
> On 30 Dec 2014 03:40, "Walter Bright via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
> >
> > On 12/29/2014 3:37 AM, Kingsley wrote:
> >>
> >> I'm interested in coming to the next D conference. Please let me know
if there
> >> is anything I can do to help out. I've been working on IDE support for
intellij
> >> here: https://github.com/kingsleyh/DLanguage
> >
> >
> > The best thing you can do is submit a speaking proposal.
> >
> >
> >> which I thought might be an interesting topic for a brief
presentation. Although
> >> I guess it depends on the audience at these conferences.
> >>
> >> Will the next one be in the same place? I'm based in London - I guess
it's not
> >> going to be in London?
> >
> >
> > It'll be at Utah Valley University:
> >
> > http://www.uvu.edu/visitors/aboutuvu/
>
> Where's the announcement? (sorry if you already have, I am yet to see it).
>
> Iain.

Even a new frontpage at dconf.org with new Dconf2015 stripes, current proposed location and date (even if still not finalized - emphasis on *to be confirmed*), and early request for speakers would be great.

Infact, even just an early request for speakers *before* any finalized plans for date and location would be beneficial for those wanting to take part.  :-)

Iain.


January 06, 2015
No tie required, Adam (you'd be the only one :-).

Chuck


On Tuesday, 30 December 2014 at 03:47:17 UTC, Adam D. Ruppe wrote:
> On Tuesday, 30 December 2014 at 03:38:08 UTC, Walter Bright wrote:
>> It'll be at Utah Valley University:
>
> OOh, I might not be the only person there wearing a tie this time!
January 06, 2015
Just so you all know, DConf 2015 is scheduled when Utah is it's most beautiful. Not too hot, everything green, perfect for hiking, whatever. If you have never been to Southern Utah before, you might want to consider scheduling some time to see the National Parks and other like places before or after the conference.


On Tuesday, 30 December 2014 at 03:38:08 UTC, Walter Bright wrote:
> On 12/29/2014 3:37 AM, Kingsley wrote:
>> I'm interested in coming to the next D conference. Please let me know if there
>> is anything I can do to help out. I've been working on IDE support for intellij
>> here: https://github.com/kingsleyh/DLanguage
>
> The best thing you can do is submit a speaking proposal.
>
>> which I thought might be an interesting topic for a brief presentation. Although
>> I guess it depends on the audience at these conferences.
>>
>> Will the next one be in the same place? I'm based in London - I guess it's not
>> going to be in London?
>
> It'll be at Utah Valley University:
>
> http://www.uvu.edu/visitors/aboutuvu/