Mailinglist Archive: yast-devel (66 mails)

< Previous Next >
Re: [yast-devel] What about comments for YCP to Ruby conversion?

Hello,

On Jun 6 15:12 Josef Reidinger wrote (excerpt):
I look forward to having openSUSE 13.1 (and then also SLE12) without
YCP!

Thanks for support. I hope result will satisfy you.

I already looked at the currently generated Ruby code
and I am impressed how well I can understand it
(at least on a first glance).
I expected much less from automatically generated code.

With comments the resulting Ruby code will satisfy me.


Your proposal sound interesting, but there is problem, that you cannot
easily change comments into statement like
string ___comment = "something";

because comments occur on various places like
a && /* comment */ b

No - programmes do not do that - never - really never ever!
;-)

Out of curiosity I did a quick search on an older YaST SVN checkout
on my local machine for this particular case and got those:
--------------------------------------------------------------------------

apparmor/src/clients/apparmor.ycp:
Label::BackButton(), /* Label::FinishButton() */ _("&Launch"));

reipl/src/Reipl.ycp:
//ccw_map["parm"] = ""; /* SLES 11 and z/VM only */ // read only

network/src/clients/network.ycp:
Label::BackButton(), /* Label::FinishButton() */ _("&Launch"));

network/src/lan/hardware.ycp:
// NetworkModules::Alias /* FIXME: MOD Lan::Module["module"] */ =
card["module"]:"";

network/src/lan/hardware.ycp:
// NetworkModules::Options /* FIXME: MOD Lan::Module["options"] */ =
card["options"]:"";

firewall/src/dialogs.ycp:
"masquerading", "broadcast_simple", /* "ipsec_support", */ "logging_level",
"custom_rules" ];

--------------------------------------------------------------------------

None of those has a real comment that explains any reason
why there is that inline comment.

Unbelievable!


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups