Mailinglist Archive: yast-devel (101 mails)

< Previous Next >
[yast-devel] Where is '`id()' documented?
  • From: Johannes Meixner <jsmeix@xxxxxxx>
  • Date: Thu, 21 Jan 2010 12:34:54 +0100 (CET)
  • Message-id: <alpine.LNX.2.00.1001211204580.17751@xxxxxxxxxxxxxx>

Hello,

I cannot find where `id() is documented, i.e. what exactly
does this symbol do in particular regarding UI functions.

I am confused because
http://forgeftp.novell.com/yast/doc/SL11.1/tdg/id_ycp_data_symbol.html
reads "A symbol is a literal constant".

In contrast
http://forgeftp.novell.com/yast/doc/SL11.1/tdg/ChangeWidget.html
reads "symbol widgetId Can also be specified as `id( any widgetId )"

Therefore for example in UI::ChangeWidget(`id("widget_id_string"),...
the literal constant `id("widget_id_string") seems to be more
like a function call of a function named id with prototype/signature
symbol id ( any )
but I cannot even find such a function documented.

I use and used `id() by "look at other code" all the time
but now I have the strange idea to try to understand it ;-)

In particular I wonder why
UI::whatever_widget_function(`id(`widget_id_symbol),...
is used most often in YCP code instead of simply calling
UI::whatever_widget_function(`widget_id_symbol,...
which is also (less often) used in YCP code.

For me `id(`widget_id_symbol) looks like a useless "call"
of a symbol->symbol conversion.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups