sharing datatypes : best practice ?