Forum OpenACS Development: util_unlist proc deprecated

Collapse
Posted by Claudio Pasolini on
The last OpenACS version has deprecated util_unlist without suggesting any alternative.

Given our heavy usage of the proc, the error log becomes quickly bloated with warning messages.

Is there a way of preventing this annoying effect?
Wich is the reccomended way to unlist a list?

Collapse
Posted by Gustaf Neumann on
One should use the tcl built-in "lassign" instead of "util_unlist" (see [1] for such a change). From which package do you get the warning? the packages in [2] are free of calls to deprecated code.

-g
[1] https://github.com/openacs/assessment/commit/e6e877ed9da812b0ac569d9db0eb472e55682295
[2] http://www.openacs.org/forums/message-view?message_id=4105490

Collapse
Posted by Claudio Pasolini on
Thank You very much for pointing to 'lassign'.

I was getting warnings from several custom packages that are not part of OpenACS.