our lack of core support for true objects/structs. (Where > accessing a non-existent member *should* throw an exception, but > preferably a compile time one.) # What? Fields smields. { package TrueObjectStruct; sub new { bless [] } my $counter = 0; for qw/foo bar baz/ { my $i = $counter++; *{$_} = sub :lvalue { $_[0]->[$i] } }}; 1; __END__ okay, it doesn't throw until runtime -- but isn't somebody working on promoting methods to compile-time-existence-checking?Thread Previous | Thread Next