home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 998 of 2,753   
   Matthias Blume to Martin Ward   
   Re: Reclaiming dynamic memory if parse f   
   18 Jul 07 20:38:13   
   
   From: blume@hanabi.local   
      
   Martin Ward  writes:   
      
   > On Friday 13 Jul 2007 15:50, carsonbj@gmail.com wrote:   
   >> When a parse fails, in the middle of the   
   >> configuration file, and the tree is partially built, how can I reclaim   
   >> all of the dynamic memory gracefully?   
   >   
   > John replied:   
   >> [There's no really clean way to do it. ...   
   >   
   > Using a C garbage collector is probably the cleanest way to do it,   
   > eg the Boehm-Demers-Weiser conservative garbage collector:   
   >   
   > http://www.hpl.hp.com/personal/Hans_Boehm/gc/   
      
   I think the "cleanest" way is to not use C in the first place.  There   
   are plenty of yacc- and lex-equivalents for modern garbage-collected   
   languages.   
      
   Matthias   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca