diff Lib/IMPL/Class/MemberInfo.pm @ 59:0f3e369553bd

Rewritten property implementation (probably become slower but more flexible) Configuration infrastructure in progress (in the aspect of the lazy activation) Initial concept for the code generator
author wizard
date Tue, 09 Mar 2010 02:50:45 +0300
parents 16ada169ca75
children 44977efed303
line wrap: on
line diff
--- a/Lib/IMPL/Class/MemberInfo.pm	Fri Mar 05 20:14:45 2010 +0300
+++ b/Lib/IMPL/Class/MemberInfo.pm	Tue Mar 09 02:50:45 2010 +0300
@@ -24,6 +24,7 @@
     die new IMPL::Exception('The name is required for the member') unless $this->Name;
     die new IMPL::Exception('The class is required for the member') unless $this->Class;
     
+    $this->Attributes({}) unless defined $this->Attributes;
     $this->Frozen(0);
     $this->Virtual(0) unless defined $this->Virtual;
     $this->Access(3) unless $this->Access;
@@ -40,7 +41,7 @@
 sub set {
     my $this = shift;
     if ($this->Frozen) {
-        die new IMPL::Exception('The member information can\'t be modified', $this->Name);
+        die new IMPL::Exception('The member information is frozen', $this->Name);
     }
     $this->SUPER::set(@_);
 }