error: return nil when error-code==0
table: add convenience function NewTableFrom