Python和Perl都没消除自指?

[perl]

!/usr/bin/perl

use strict;
use warnings;

my @foo = qw(foo1 foo2);
my @bar = qw(bar1 bar2);

push @foo, @bar;
push @bar, @foo;

print @{$foo[2][2][2][2][2][2][2][2][2][2]}, “n”

please add more if you want

[/perl]

[python]

!/usr/bin/env python

foo = [‘foo1’, ‘foo2’]
bar = [‘bar1’, ‘bar2’]

foo.append(bar)
bar.append(foo)

print foo[2][2][2][2][2][2][2]

please add more if you want

[/python]

C语言显然不会出现这种情况,因为要用指针的话这两种指针显然不是一个层次上的,必须通过强制转化。而Python和Perl之所以都会出现这种情况是因为他们的的list都太NB了,啥都能放,包括它本身!!

或者是我最近看《集异璧》看多了??