A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-November/058158.html below:

[Python-Dev] Memory management in the AST parser & compiler

[Python-Dev] Memory management in the AST parser & compiler [Python-Dev] Memory management in the AST parser & compilerNick Coghlan ncoghlan at gmail.com
Wed Nov 16 11:33:22 CET 2005
Nick Coghlan wrote:
> Marek Baczek BaczyƄski wrote:
>> 2005/11/15, Nick Coghlan <ncoghlan at iinet.net.au>:
>>> It avoids the potential for labelling problems that arises when goto's are
>>> used for resource cleanup. It's a far cry from real exception handling, but
>>> it's the best solution I've seen within the limits of C.
>> <delurk>
>> do {
>>     ....
>>     ....
>> } while (0);
>>
>>
>> Same benefit and saves some typing :)
> 
> Heh. Good point. I spend so much time working with a certain language I tend 
> to forget do/while loops exist ;)

Thomas actually tried doing things this way, and the parser/compiler code 
needs to use loops, which means this trick won't work reliably.

So we'll need to do something smarter (such as the arena idea) to deal with 
the memory allocation problem.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4