Re: More on environments and objects
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: More on environments and objects
- From: Chris Marrin <chris@...>
- Date: 2005年8月27日 20:18:30 -0700
PA wrote:
On Aug 27, 2005, at 16:36, Mike Pall wrote:
Interesting. Looks like many programmers (when new to Lua or
to its ancestor languages) experience the same learning curve.
I would guess that the same applies to any/most new languages one tries
to learn, no?
8. object equality vs. object identity.
Doesn't the __eq metamethod cater to both?
No, it has what is for me a fatal flaw. You cannot compare a userdata to
a number, for instance. Rici has pointed out an interesting angle on
this that I have yet to try. So there may be hope.
--
chris marrin ,"",ドル "As a general rule,don't solve puzzles
chris@marrin.com b` $ that open portals to Hell" ,,.
,.` ,b` ,` , 1$'
,|` mP ,` :$$' ,mm
,b" b" ,` ,mm m$$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :1ドル
b$` ,$: :,`` |$$ ,` $$` ,|` ,$,,ドル`"$$ .` :$|
b$| _m$`,:` :1ドル ,` ,$Pm|` ` :$,ドル..;"' |$:
P$b, _;b$$b1ドル" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`