Mailinglist Archive: yast-devel (54 mails)

< Previous Next >
[yast-devel] Re: Integer range in YaST
For one of feature I have provide the range from 100000 to
4294967295 (2^32 -1), current IntField(...) I am not able to
specify, are they any api to mention this range.

Hi Suresh,

(I am replying to the public ML for the benefit of the general
public; please do not discuss world takeover plans here :))

Although Ruby supports arbitrarily large integers with Bignum, and
YCP uses 64 bit integers, the UI library uses ordinary 32 bit
unsigned integers for the IntField.

The scripting API docs don't make that apparent:
but the C++ API does:

All widgets seem to have this limitation. Adding -Wconversion to
the flags of yast2-ycp-ui-bindings reveals that and much more :-/
Martin Vidner, Cloud & Systems Management Team

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
< Previous Next >
This Thread
  • No further messages