digitalmars.D.dtl - MinTL segfault.
- Bastiaan Veelo (39/39) Sep 13 2004 This is likely a bug in dmd, probably related to
- Ben Hinkle (9/48) Sep 13 2004 Bummer. It looks like TypeInfo compare functions are busted for interfac...
This is likely a bug in dmd, probably related to http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1810 dmd 0.101 on Linux. #import mintl.util; #class. */ #interface Base #class Foo : Base #class Bar : Base #int main()
Sep 13 2004
Bummer. It looks like TypeInfo compare functions are busted for interfaces. If you try to run TypeInfo ti = typeid(foo); ti.compare(&foo,&bar); you'll error out. On win32 I get a Win32 Exception. Probably since the declaration of compare is with void* instead of a specific type it gets all confused about calling opCmp. Nasty. I'm cross-posting to bugs. "Bastiaan Veelo" <Bastiaan.N.Veelo ntnu.no> wrote in message news:ci495h$1alr$1 digitaldaemon.com...This is likely a bug in dmd, probably related to http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1810 dmd 0.101 on Linux. #import mintl.util; #class. */ #interface Base #class Foo : Base #class Bar : Base #int main()
Sep 13 2004