Singular/Sources — pull request #141 by alexanderdreyer (2012-06-20 20:48:30+00:00)
Title: Fix; newstruct convertible to poly

```C
newstruct("wrapping","int i");

proc to_poly(wrapping obj)
{
return (var(obj.i+1));
}

system("install", "wrapping", "poly", to_poly, 1);
wrapping wrapped;
ring r = 0,x,dp;
poly(wrapped); // -> x

```