lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Dibyendu Majumdar once stated:
> 
> But more interestingly suppose you have a user defined type where the
> metatable has been registered. Suppose that the name under which you
> have registered the metatable is 'Torch.Tensor'.
> 
> Then you can write:
> 
> local x: Torch.Tensor = ...
> function Foo (x: Torch.Tensor)
> end

  Interesting.  Can you handle the case where the user defined type has more
than just letters, digits and periods?  I ask because I also use colons in
my user defined types,  such as:

	org.conman.net:addr
	org.conman.net:sock

  -spc