Branch: Tag:

2017-12-11

2017-12-11 21:04:07 by Stephen R. van den Berg <srb@cuci.nl>

Range: Reuse Math.inf etc; Use NetUtils.

11:   //!   mixed till;    - //! + //! @param from + //! Lower inclusive limit for the interval. Specify no lower-limit + //! by filling in @expr{-Math.inf@}. + //! @param till + //! Upper exclusive limit for the interval. Specify no upper-limit + //! by filling in @expr{Math.inf@}. + //! @seealso + //! [Math.inf]   protected variant void create(mixed from, mixed till) {    this::from = from;    this::till = till;
76:   protected mixed cast(string to) {    if (to == "string")    return from >= till ? "empty" : sprintf("%c%s,%s)", -  from == Val.neginfty ? '(' : '[', (string)from, (string)till); +  from == -Math.inf ? '(' : '[', from == -Math.inf ? "" : (string)from, +  till == Math.inf ? "" : (string)till);    return UNDEFINED;   }