[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntactical ugliness - does it matter?
- From: Sean Conner <sean@...>
- Date: Tue, 4 Jun 2019 16:24:38 -0400
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