Re: Operator Overloading with class template

2012-04-09 Thread James Miller
* Eyyub eyyub.pangeara...@gmail.com [2012-04-09 01:14:32 +0200]: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ? http://paste.pocoo.org/show/wy1kDIpqTi2ApRuOxRRb/ Thx. :) What you want is something like this:

Re: Operator Overloading with class template

2012-04-09 Thread Eyyub
On Monday, 9 April 2012 at 09:09:05 UTC, James Miller wrote: * Eyyub eyyub.pangeara...@gmail.com [2012-04-09 01:14:32 +0200]: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ?

Re: Operator Overloading with class template

2012-04-08 Thread Francois Chabot
On Sunday, 8 April 2012 at 23:14:33 UTC, Eyyub wrote: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ? http://paste.pocoo.org/show/wy1kDIpqTi2ApRuOxRRb/ Thx. :) As far as I know, there is nothing special about

Re: Operator Overloading with class template

2012-04-08 Thread Francois Chabot
On Sunday, 8 April 2012 at 23:41:51 UTC, Francois Chabot wrote: On Sunday, 8 April 2012 at 23:14:33 UTC, Eyyub wrote: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ? http://paste.pocoo.org/show/wy1kDIpqTi2ApRuOxRRb/

Re: Operator Overloading with class template

2012-04-08 Thread Eyyub
On Sunday, 8 April 2012 at 23:44:12 UTC, Francois Chabot wrote: On Sunday, 8 April 2012 at 23:41:51 UTC, Francois Chabot wrote: On Sunday, 8 April 2012 at 23:14:33 UTC, Eyyub wrote: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't

Re: Operator Overloading with class template

2012-04-08 Thread Andrej Mitrovic
On 4/9/12, Eyyub eyyub.pangeara...@gmail.com wrote: Np :D, you don't know how can I do for the example 2 ? Well for one thing, there are no global operators in D. Others might help out with writing a proper opBinary that's defined in Value itself.

Re: Operator Overloading with class template

2012-04-08 Thread Eyyub
On Monday, 9 April 2012 at 00:04:50 UTC, Andrej Mitrovic wrote: On 4/9/12, Eyyub eyyub.pangeara...@gmail.com wrote: Np :D, you don't know how can I do for the example 2 ? Well for one thing, there are no global operators in D. Others might help out with writing a proper opBinary that's