Looking for Details On Recent Changes

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Wed Apr 11 15:37:08 PDT 2007


Xinok wrote:
> I'm looking for details on two changes in particular.
> 
> First comes from 1.011, being the macro keyword. I can't find anything
> about it, and I have no idea how to use it.

It has been just reserved now. It will do something in the (near) future.

> Second comes from 1.010:
>>> Added template partial specialization derived from multiple parameters.
> I don't understand what this means exactly?

There's an example about it on the template page.
http://digitalmars.com/d/template.html

  Deduction from a specialization can provide values for more than one
  parameter:

  template Foo(T: T[U], U)
  {
      ...
  }

  Foo!(int[long])  // instantiates Foo with T set to int, U set to long

Although I also had to diff those docs to find it.



More information about the Digitalmars-d mailing list