Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Memory size overflows

Tim Peterstim.one@comcast.net
Wed, 16 Oct 2002 12:37:54 -0400


[Guido]> The trick will to ensure that the macro arguments are used exactly> once in all versions (otherwise switching macros might unveal a new> class of> > bugs).[Armin Rigo]> Harder...It's trivial if you define the macro to take an lvalue result argument.Then the macro can expand to a block, and so declare block-local tempvariables, including, if desired, temps that are merely initialized to othermacro arguments.  Such temps can be reused as often as you like withoutsemantic consquence.  Contorting this into expression rvalue form is achallenge, but a worthier challenge is yielding to common sense here <wink>.


[8]ページ先頭

©2009-2025 Movatter.jp