bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refactoring rewrite_filename functions


From: Bruno Haible
Subject: Re: Refactoring rewrite_filename functions
Date: Wed, 17 Apr 2024 16:03:59 +0200

Hi Collin,

> This will require some code reordering first though. The
> GLFileAssistant used by GLImport is not defined until
> GLImport.execute(). The file name transformations are done in
> GLImport.prepare().

Good point.

> I think the correct solution there is to define the GLFileAssistant in
> GLImport.__init__() with it's default arguments and then set them
> later.

Hmm, this sounds clumsy.

Can't you order things in such a way that
  1. GLConfig is created.
  2. The configuration is elaborated and stored in GLConfig.
  3. GLConfig is finished.
  4. GLFileAssistant is initialized.
?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]