Re: PL/Perl embedding string common elements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/Perl embedding string common elements
Дата
Msg-id 19128.1124591377@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/Perl embedding string common elements  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: PL/Perl embedding string common elements  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Every perl module whose author wants strict mode (and they all should)
> has to carry such a declaration, so in a sense we'd just be doing what
> perl itself does, and by trying to provide a global switch we're being
> unperlish.

You missed my point.  I wasn't objecting to having the global switch,
only to the fact that turning it on and off doesn't do what a rational
person would expect.  If it's going to advertise itself as USERSET then
it darn well ought to be settable.

The idea of loading the strict module unconditionally seems ok to me,
if we can work out a way of making it apply or not apply to individual
function compilations.  From what you were saying, perhaps it would
work to implicitly add "strict->import();" when use_strict is enabled?

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: PL/Perl embedding string common elements
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: PL/Perl embedding string common elements