OpenAccess Scripting Language Interfaces Architecture John McGehee / Blognado, Chip Design, Software Development / CSharp, oaScript, OpenAccess, Perl, Python, Ruby, SWIG, Tcl / 0 comments Jun 14, 2011 At DAC 2011 I gave a presentation on the architecture of oaScript at Si2’s OpenAccess Scripting Language Workshop. Download PDF presentation More
Polymorphic C# and Java Using SWIG John McGehee / Blognado, Software Development / C++, CSharp, Java, SWIG / 1 comment Apr 10, 2011 By default SWIG generates C# and Java code that does not support downcast for polymorphic return types. I found a straightforward way to solve this, provided your C++ code has a way to identify the concrete class of the C++ instances that are returned. That is, this technique will work only if the C++ API you are wrapping with SWIG has something similar to C# object.GetType() or Java Object.getClass(). More