Re: suggestion: __typeof()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: suggestion: __typeof()
- From: "Michael T. Richter" <ttmrichter@...>
- Date: 2006年1月18日 21:10:02 +0800
On Wed, 2006-18-01 at 11:19 +0000, Lisa Parratt wrote:
> I'm always a fan of enforcing polite coding behaviour in the language. ;)
This is great for many uses, but totally kills the utility of the
function for proxy objects.
What if my userdata is a proxy for an external vector, and therefore
wants to present itself to Lua code as a table? With a simple __typeof
metamethod, it can simply return "table". With your proposed "forced
politeness", it's back to patching out idiot proofing before someone who
understands and accepts the consequences of their actions can use Lua to
it's full.
Wouldn't a table holding your userdata do the same thing? Return type "table" I mean?
--
Michael T. Richter
Email: ttmrichter@gmail.com, mtr1966@hotpop.com
MSN: ttmrichter@hotmail.com, mtr1966@hotmail.com; YIM: michael_richter_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber: mtr1966@jabber.cn
Attachment:
signature.asc
Description: This is a digitally signed message part
- References:
- suggestion: __typeof(), Asko Kauppi
- Re: suggestion: __typeof(), Luiz Henrique de Figueiredo
- Re: suggestion: __typeof(), eugeny gladkih
- Re: suggestion: __typeof(), Luiz Henrique de Figueiredo
- Re: suggestion: __typeof(), Lisa Parratt
- Re: suggestion: __typeof(), Luiz Henrique de Figueiredo
- Re: suggestion: __typeof(), Lisa Parratt
- Re: suggestion: __typeof(), Alex Queiroz
- Re: suggestion: __typeof(), Asko Kauppi
- RE: suggestion: __typeof(), Dolan, Ryanne Thomas (UMR-Student)
- RE: suggestion: __typeof(), Michael T. Richter
- Re: suggestion: __typeof(), Lisa Parratt