September 01, 2004 Re: DMD 0.101 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | Oh no , duh :S. Hehe it works, sweet! In article <ch5226$2f0s$1@digitaldaemon.com>, Ben Hinkle says... > >worked for me. Did you get dmd-0.101? Run dmd -v to find out. > >"Cappa-Gamma" <Cappa-Gamma_member@pathlink.com> wrote in message news:ch513r$2em3$1@digitaldaemon.com... >> Hmmm, compiling this though : >> >> ### >> module foo; >> >> import std.stream; >> >> void main () >> { >> void function() x, y; >> x = function void() { stdout.writeLine("X!"); }; >> y = function void() { stdout.writeLine("Y!"); }; >> x(); >> y(); >> } >> >> Gives me the error : >> >> c:\dmd\bin\..\..\dm\bin\link.exe foo,,,user32+kernel32/noi; >> OPTLINK (R) for Win32 Release 7.50B1 >> Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved >> >> foo.obj(foo) Offset 001B5H Record Type 00C3 >> Error 1: Previous Definition Different : _D3foo4main0FZv >> --- errorlevel 1 >> >> ?? >> >> Charlie >> >> >> In article <ch4ehp$25sb$2@digitaldaemon.com>, Ben Hinkle says... >> > >> >Stewart Gordon wrote: >> > >> >> Walter wrote: >> >> >> >>> http://www.digitalmars.com/d/changelog.html >> >> >> >> "Function literals can now have same type signature." >> >> >> >> Same as what? >> >> >> >> Stewart. >> >> >> > >> >Same as each other. I think there was a bug where two function literals >in >> >the same scope couldn't have the same signature. So >> >void foo() { >> > x = function int(){...}; >> > y = function int(){...}; >> >} >> >wouldn't compile because of conflicting function names. My guess is >that's >> >the bug that got fixed. >> > >> >> > > |
Copyright © 1999-2021 by the D Language Foundation