Re: arrays as pl/perl input arguments [PATCH]

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: arrays as pl/perl input arguments [PATCH]
Дата
Msg-id 1296757487.6442.2.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: arrays as pl/perl input arguments [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Список pgsql-hackers
On tor, 2011-02-03 at 18:01 +0000, Tim Bunce wrote:
> Imagine that PL/Perl could handle named arguments:
> 
>     CREATE FUNCTION join_list( separator text, list array ) AS $$
>         return join( $separator, @$list );
>     $$ LANGUAGE plperl;
> 
> The $list variable, magically created by PL/Perl, could be the array
> reference created by your code, without altering the contents of @_.

I would find that pretty surprising, since Perl itself doesn't even
provide named arguments.



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: ALTER EXTENSION UPGRADE, v3
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: ALTER EXTENSION UPGRADE, v3