Branch: Tag:

2008-11-04

2008-11-04 15:43:32 by Martin Stjernholm <mast@lysator.liu.se>

Don't use variables to create function aliases since that causes cyclic refs
which leads to garbage.

Rev: lib/modules/Calendar.pmod/Event.pmod:1.17
Rev: lib/modules/Calendar.pmod/Events.pmod:1.13
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.19
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.29

1:   //! module Calendar    - // $Id: TimeRanges.pmod,v 1.18 2001/06/09 15:00:50 mirar Exp $ + // $Id: TimeRanges.pmod,v 1.19 2008/11/04 15:43:32 mast Exp $      #pike __REAL_VERSION__   
308:   //! the time period. <tt>t*17</tt> is   //! the same as doing <tt>t-><ref>set_size</ref>(t,17)</tt>.    -  function ``* = `*; +  TimeRange ``* (int n) {return `* (n);}    TimeRange `*(int n)    {    return set_size(n,this_object());
708:   //! &gt;----- cut -----&lt;   //! </pre>    -  function ``& = `&; +  TimeRange|zero ``& (TimeRange with, mixed... extra) +  {return `& (with, @extra);}    TimeRange|zero `&(TimeRange with, mixed ...extra)    {    if (with->is_nulltimerange)
744:   //! &lt;----------union----------&gt;   //! </pre>    -  function ``| = `|; +  TimeRange ``| (TimeRange with, mixed... extra) {return `| (with, @extra);}    TimeRange `|(TimeRange with,mixed ...extra)    {    if (with->is_nulltimerange)
783:   //! &lt;----| |----> - exclusive or   //! </pre>    -  function ``^ = `^; +  TimeRange ``^ (TimeRange with, mixed... extra) {return `^ (with, @extra);}    TimeRange `^(TimeRange with,mixed ... extra)    {    if (with->is_supertimerange)