[polyml] LInkage and the Foreign structure