Any pointers to those mechanisms? 
Cheers,
~PM

Date: Thu, 12 Sep 2013 03:12:13 +0100
Subject: Re: [agi] Module re-definitions
From: [email protected]
To: [email protected]

If ( exists(table(A))) then drop table A ;

Create table A as blah blah blah...

ee? no! that would break everything that refers to table A. modify it in place 
instead. 
 
In 3 GL languages like C++, Java, etc. when a code module is accidentally 
included twice in a source file, what exactly happens? Does the compiler
redefine or ignore the functions or objects in the duplicate module? What 
about interpreted languages like python? 
what you want is usually that importing a module is idempotent, i.e. doing it 
twice is the same as doing it once. The mechanisms by which this is achieved 
are very different in C++ versus Java but it is achieved nonetheless.




  
    
      
      AGI | Archives

 | Modify
 Your Subscription


      
    
  

                                          


-------------------------------------------
AGI
Archives: https://www.listbox.com/member/archive/303/=now
RSS Feed: https://www.listbox.com/member/archive/rss/303/21088071-f452e424
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21088071&id_secret=21088071-58d57657
Powered by Listbox: http://www.listbox.com

Reply via email to