Mailinglist Archive: yast-devel (116 mails)

< Previous Next >
Re: [yast-devel] Request for new Builtin
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Fri, 13 Jun 2008 14:58:48 +0200
  • Message-id: <48526F08.7090903@xxxxxxx>
Hi,

Arvin Schnell wrote:
Hi,

it's ITO Friday again and I would like to add a tiny builtin to YCP.

integer::range(integer n)
> integer::range(integer s, integer n)
[...]

Do we really need a new builtin for that? For string related functions we have
String.ycp. There is also Map.ycp so I think there should be Integer.ycp with
such functionality. (see SVN yast2/library/types/src)

IMO builtins are the core language components, without them the language would
be incomplete and some functionality could not be programmed. Everything else
should be in a library. Just like in C/C++...


--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References