I am trying to make a table, name given by the first arg of a function and assign a value to a key named by the second arg. For example
function myinsert(a, b)
a.b = 10
For example when I give args pencil and price, pencil table to be created and pencil.price to be 10. Or other args, lesson and grade, making lesson.grade = 10. But as I try this it gives that it can't index local a (number value). What should I do? Thanks a lot