From: Vinícius d. S. O. <vin...@gm...> - 2021-06-07 13:34:32
|
Em seg., 7 de jun. de 2021 às 10:23, Andrew J. Schorr < as...@te...> escreveu: > You are certainly free to use global variables to configure the > behavior of your library. Many extensions do this; for example, > the XML extension uses the XMLMODE variable. But if you expect gawk > to implement this policy for you, then I don't know how that would > work. It would be the extension's responsibility to implement this type > of behavior. How could gawk enforce it for you? To do that, we'd have > to change the API, which seems unlikely. > Okay. Thanks. I was just uneasy given I don't have much actual experience with AWK, so I wanted to check whether a current or similar idiom/convention for this was already in place as to not create new friction between extensions. I'll introduce a new var on my plugin and roll with it. -- Vinícius dos Santos Oliveira https://vinipsmaker.github.io/ |