On 7/11/2011 7:04 AM, dsimcha wrote:
Great release!  I noticed that auto ref function parameters are now implemented,
but only for template functions.  Is there a reason for this limitation?  
Example:

Works:

void foo()(auto ref int num) {
     num++;
}

Doesn't:

void foo(auto ref int num) {
     num++;
}

auto ref changes the code generated for the function body, so it must be a 
template.
      • ... Andrei Alexandrescu
        • ... Andrej Mitrovic
          • ... Andrej Mitrovic
        • ... Walter Bright
          • ... Andrej Mitrovic
  • ... Stephan
    • ... Walter Bright
      • ... Michel Fortin
        • ... bearophile
  • ... dsimcha
    • ... Walter Bright
      • ... dsimcha
        • ... Walter Bright
          • ... dsimcha
            • ... Walter Bright
  • ... Trass3r
  • ... М и х а и л С т р а ш у н

Reply via email to