checked in in rev 21655.

There's just one issue regarding Pref.range(), by now it is just a
"constrained" string.

The "right-way" should be to have range_t to become a type on its own
so that stuff like this can be done:

do
  proto.prefs.rng =  Pref.range(...);
  -- ...
  for i in proto.prefs.rng() do
     print(i)
  end
  -- ...
  if  proto.prefs.rng:is_in(35) then
    print("got 35!")
  end
end

Range should have
range:__call() returns a RangeIterator
range:__tostring()
range:is_in(n)

A RangeIterator should have just a __call methamethod that returns the
next value in the Range (and nil once reached the end)

Luis

On 5/2/07, Balint Reczey (IJ/ETH) <[EMAIL PROTECTED]> wrote:
> Hi,
> Is there anything i could do to help this patch's inclusion in the svn
> repo?
> Regards,
> Balint
>
> 2007. 04. 27, péntek keltezéssel 13.28-kor Balint Reczey (IJ/ETH) ezt
> írta:
> > Hi,
> >
> > The attached patch adds ability of of creating radio button, drop-down
> > list and range type preference entries to the Lua plugin.
> > It also fixes a lua compile warning/error in wslua_gui.c.
> > The patch is written by Tamas Regos, he asked me to send it to the list.
> > Could someone commit it to the svn repo?
> >
> > Cheers,
> > Balint
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@wireshark.org
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to