[Issue 3797] Implicit conversion between incompatible function	pointers
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Oct 19 11:05:30 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3797
Sobirari Muhomori <dfj1esp02 at sneakemail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2573
--- Comment #7 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-10-19 11:04:48 PDT ---
also
---
import core.stdc.stdio;
void f(int[] a)
{
    a[0]=42;
}
int main()
{
    immutable int[] b = [1,2,3];
    void function(const int[] a) g=&f;
    printf("%d\n",b[0]);
    g(b);
    printf("%d\n",b[0]);
    return 0;
}
---
1
42
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list