November 19, 2005
Walter Bright wrote:
> "Dave" <Dave_member@pathlink.com> wrote in message
> news:dliblu$1fsb$1@digitaldaemon.com...
> 
>>In article <dkok21$p6r$1@digitaldaemon.com>, Walter Bright says...
>>
>>> I'll be giving one there on the D programming language, Nov. 16.
>>> See you all there!
>>
>>How'd it go?
> 
> Very well, I think.
> 
>>Is there anything posted to look at?
> 
> No, because I'm going to redo the slides <g>.

Then we feel honoured!

We're getting the edited and polished versions, while
the heavy-duty gurus over there got the mere drafts.
December 14, 2005
Walter Bright skrev:
> "Dave" <Dave_member@pathlink.com> wrote in message
> news:dliblu$1fsb$1@digitaldaemon.com...
> 
>>In article <dkok21$p6r$1@digitaldaemon.com>, Walter Bright says...
>>
>>>I'll be giving one there on the D programming language, Nov. 16. See you
<snip>
>>Is there anything posted to look at?
> 
> 
> No, because I'm going to redo the slides <g>.
> 

Just a friendly reminder, from someone eagerly waiting :).

// Fredrik
December 15, 2005
In article <dnpiau$1c19$1@digitaldaemon.com>, Fredrik Olsson says...
>Walter Bright skrev:
>> No, because I'm going to redo the slides <g>.
>> 
>
>Just a friendly reminder, from someone eagerly waiting :).

I haven't forgotten <g>.


December 15, 2005
Walter Bright wrote:
> In article <dnpiau$1c19$1@digitaldaemon.com>, Fredrik Olsson says...
> 
>>Walter Bright skrev:
>>
>>>No, because I'm going to redo the slides <g>.
>>>
>>
>>Just a friendly reminder, from someone eagerly waiting :).
> 
> 
> I haven't forgotten <g>.
> 
> 

I'm wondering, what is the target(aka aproximate) time length of this
presentation?

-- 
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to
be... unnatural."

December 16, 2005
In article <dnsr64$q35$2@digitaldaemon.com>, Bruno Medeiros says...
>I'm wondering, what is the target(aka aproximate) time length of this
>presentation?

I generally shoot for an hour, with an extra half hour for questions.


December 16, 2005
Walter Bright wrote:
> In article <dnsr64$q35$2@digitaldaemon.com>, Bruno Medeiros says...
> 
>>I'm wondering, what is the target(aka aproximate) time length of this
>>presentation?
> 
> 
> I generally shoot for an hour, with an extra half hour for questions.
> 
> 
Hum, I'm planning on doing a presentation on D too, in my university (just a small audience, for a Programming Language Pragmatics course), and it's mostly written already, however, I'm having trouble finding a good example for the mixin feature. That is, a useful and pratical example, that wouldn't be solved as easily by another language feature (for instance, with class composition).
Would anyone happen to have such an example? (I'd even settle with one that was not sizeable to a presentation, since I'm also plainly curious)

-- 
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to be... unnatural."
December 16, 2005
Take a small c++ program that uses multiple inhertiance, and convert it.

~John Demme

Bruno Medeiros wrote:

> Walter Bright wrote:
>> In article <dnsr64$q35$2@digitaldaemon.com>, Bruno Medeiros says...
>> 
>>>I'm wondering, what is the target(aka aproximate) time length of this
>>>presentation?
>> 
>> 
>> I generally shoot for an hour, with an extra half hour for questions.
>> 
>> 
> Hum, I'm planning on doing a presentation on D too, in my university
> (just a small audience, for a Programming Language Pragmatics course),
> and it's mostly written already, however, I'm having trouble finding a
> good example for the mixin feature. That is, a useful and pratical
> example, that wouldn't be solved as easily by another language feature
> (for instance, with class composition).
> Would anyone happen to have such an example? (I'd even settle with one
> that was not sizeable to a presentation, since I'm also plainly curious)
> 

December 17, 2005
In article <dnv92a$2mk2$1@digitaldaemon.com>, Bruno Medeiros says... ..snip...
>Hum, I'm planning on doing a presentation on D too, in my university
>(just a small audience, for a Programming Language Pragmatics course),
>and it's mostly written already, however, I'm having trouble finding a
>good example for the mixin feature. That is, a useful and pratical
>example, that wouldn't be solved as easily by another language feature
>(for instance, with class composition).
>Would anyone happen to have such an example? (I'd even settle with one
>that was not sizeable to a presentation, since I'm also plainly curious)

I don't really have a good grasp of what mixins are all about, but I won't let that stop me from suggesting some links that might be helpful to you. Or not. I'll let you decide.

http://trac.dsource.org/projects/tutorials/wiki/InternalTemplatesExample http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/28267 http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/29593

also of possible interest: "Mixins vs. Macros" http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/1473

You could also browse the newsgroup looking for posts that mention mixin, but I don't know how effective that'd be since they were mentioned quite a few times before Walter even added them to D (so any of that example code would've been speculative). Mixins were added in DMD 0.89 (May 17, 2004).

Here's an example of a possible search: http://www.google.com/custom?domains=www.digitalmars.com&q=mixin&sa=Search&sitesearch=www.digitalmars.com

(I'll apologize in advanced if this is a double-post. The first time I clicked on "Post Message", it kept spinning its wheels and acted like it wasn't going to post.)

jcc7
December 17, 2005
J C Calvarese wrote:
> In article <dnv92a$2mk2$1@digitaldaemon.com>, Bruno Medeiros says...
> ...snip...
> 
>>Hum, I'm planning on doing a presentation on D too, in my university (just a small audience, for a Programming Language Pragmatics course), and it's mostly written already, however, I'm having trouble finding a good example for the mixin feature. That is, a useful and pratical example, that wouldn't be solved as easily by another language feature (for instance, with class composition).
>>Would anyone happen to have such an example? (I'd even settle with one that was not sizeable to a presentation, since I'm also plainly curious)
> 
> 
> I don't really have a good grasp of what mixins are all about, but I won't let
> that stop me from suggesting some links that might be helpful to you. Or not.
> I'll let you decide.
> 
> http://trac.dsource.org/projects/tutorials/wiki/InternalTemplatesExample
> http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/28267
> http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/29593
> 
> also of possible interest: "Mixins vs. Macros"
> http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/1473
> 

Yes, the other examples have some good ideias. However, as for this one here:
http://trac.dsource.org/projects/tutorials/wiki/InternalTemplatesExample
Is that not incorrect? The spec clearly states (http://www.digitalmars.com/d/template.html) that "Templates cannot be used to add non-static members" to classes. This is precisely what that example does, and the funny thing is that it compiles and runs ok. I don't see how that can work, unless the compiler is treating the templated method as final.


-- 
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to be... unnatural."
December 17, 2005
John Demme wrote:
> Bruno Medeiros wrote:
>>
>>Hum, I'm planning on doing a presentation on D too, in my university
>>(just a small audience, for a Programming Language Pragmatics course),
>>and it's mostly written already, however, I'm having trouble finding a
>>good example for the mixin feature. That is, a useful and pratical
>>example, that wouldn't be solved as easily by another language feature
>>(for instance, with class composition).
>>Would anyone happen to have such an example? (I'd even settle with one
>>that was not sizeable to a presentation, since I'm also plainly curious)
>>
> 
> 
> Take a small c++ program that uses multiple inhertiance, and convert it.
>
> ~John Demme
>

That's precisely the example I think is equally (vs. mixins) well solved with objection composition.

-- 
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to be... unnatural."
1 2 3
Top | Discussion index | About this forum | D home