Mailinglist Archive: yast-devel (53 mails)

< Previous Next >
[yast-devel] Never include anything in global namespace
Hi,
I just would like to remind that noone should include/extend anything to global
namespace in his ruby code. It affects clients, modules, libs and also
includes. The most visible part is `include Yast` which cause that all modules
living in Yast namespace start living in global namespace and start colliding
with ruby classes and modules. But also other smaller modules can cause problem.

example of code that can break complete installation is
https://github.com/yast/yast-network/blob/11d9c4b7435bb34f5c40c8c19d8c68c58777924e/src/lib/network/install_inf_convertor.rb#L3

So please do not do it.

Josef
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups