• Ping?

    From Bo Simonsen@1:261/38 to All on Tue Apr 28 03:57:54 2009
    Hi all,

    Just testing how far this echo comes..

    Bo

    --- BBBS/LiI v4.01 Flag
    * Origin: Prism bbs (1:261/38)
  • From Mike Luther@1:117/3001 to Bo Simonsen on Tue Apr 28 11:28:40 2009
    Pomg ..

    Hi all,

    Just testing how far this echo comes..

    Bo

    Margerie Dong.


    Sleep well; OS/2's still awake! ;)

    Mike @ 1:117/3001

    --- Maximus/2 3.01
    * Origin: Ziplog Public Port (1:117/3001)
  • From Alan Ianson@1:153/758 to Bo Simonsen on Tue Apr 28 12:09:12 2009
    Just testing how far this echo comes..

    This one too.. :)

    Ttyl :-),
    Al

    --- BBBS/LiI v4.01 Flag
    * Origin: The Rusty MailBox - Penticton, BC Canada - trmb.ca (1:153/758)
  • From andrew clarke@3:633/267 to Bo Simonsen on Wed Apr 29 05:39:28 2009
    On Tue 2009-04-28 03:57, Bo Simonsen (1:261/38) wrote to All:

    Just testing how far this echo comes..

    Hello!

    --- timEd/FreeBSD 1.11.b2
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
  • From Bo Simonsen@2:236/100 to Mike Luther on Tue Apr 28 22:04:12 2009
    Just testing how far this echo comes..

    Nice I went through...

    Just thought of, are you guys also excited to see the final version of the C++0x standard?

    So far, I've experimented some, especially with the auto-keyword.
    (It's in GCC 4.4)

    Instead of writing:

    std::set<int> cont;
    cont.insert(5);
    cont.insert(7);

    for(typename std::set<int>::iterator it = cont.begin();
    it != cont.end();
    ++it) {
    // do something with *it
    }

    We can simply write:

    for(auto it=cont.begin(); it != cont.end(); ++it) {

    }

    Damn nice.. :)

    Bo

    --- DayDream/Linux 2.15a
    * Origin: The Night Express, Korsoer, geekworld.no-ip.org (2:236/100)
  • From Bo Simonsen@2:236/100 to Alan Ianson on Wed Apr 29 00:01:06 2009
    Just testing how far this echo comes..

    This one too.. :)

    Nice... :-)

    Bo

    --- DayDream/Linux 2.15a
    * Origin: The Night Express, Korsoer, geekworld.no-ip.org (2:236/100)
  • From Bo Simonsen@2:236/100 to andrew clarke on Wed Apr 29 00:01:19 2009
    On Tue 2009-04-28 03:57, Bo Simonsen (1:261/38) wrote to All:

    Just testing how far this echo comes..

    Hello!

    Hello, agian .. :)

    Bo

    --- DayDream/Linux 2.15a
    * Origin: The Night Express, Korsoer, geekworld.no-ip.org (2:236/100)
  • From andrew clarke@3:633/267 to Bo Simonsen on Thu Apr 30 01:03:06 2009
    On Tue 2009-04-28 22:04, Bo Simonsen (2:236/100) wrote to Mike Luther:

    Just thought of, are you guys also excited to see the final
    version of the C++0x standard?

    So far, I've experimented some, especially with the auto-keyword.
    (It's in GCC 4.4)

    Instead of writing:

    std::set<int> cont;
    cont.insert(5);
    cont.insert(7);

    for(typename std::set<int>::iterator it = cont.begin();
    it != cont.end();
    ++it) {
    // do something with *it
    }

    How does "typename" work here? I'm not familiar with recent C++ developments...

    We can simply write:

    for(auto it=cont.begin(); it != cont.end(); ++it) {

    }

    Hmm. I don't really know how that works, but I think I prefer this:

    typedef std::set<int> intset_t;
    intset_t cont;

    cont.insert(5);
    cont.insert(7);

    intset_t::iterator it = cont.begin();

    while (it != cont.end())
    {
    // do something with *it
    ++it;
    }

    Having said that, my personal preference is a bit academic - as these days I spend most of my programming time writing code in Python :-)

    cont = set()
    cont.add(5)
    cont.add(7)

    for it in cont:
    print it

    Regards
    Andrew

    --- timEd/FreeBSD 1.11.b2
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
  • From Bo Simonsen@2:236/100 to andrew clarke on Wed Apr 29 21:17:43 2009
    for(typename std::set<int>::iterator it = cont.begin();
    it != cont.end();
    ++it) {
    // do something with *it
    }

    How does "typename" work here? I'm not familiar with recent C++ ac>developments...

    My error.. There should not be any typename there.. Typename should only
    be used in relation to template arguments. typename C::iterator for a
    template argument C works.

    We can simply write:

    for(auto it=cont.begin(); it != cont.end(); ++it) {

    }

    Hmm. I don't really know how that works, but I think I prefer this:

    The compiler will deduce the type of 'it' from the return type of
    cont.begin() .. It's that simple.. :)

    typedef std::set<int> intset_t;
    intset_t cont;

    cont.insert(5);
    cont.insert(7);

    intset_t::iterator it = cont.begin();

    while (it != cont.end())
    {
    // do something with *it
    ++it;
    }

    Yes that's the generic way of doing it.. However we should use std::for_each
    if we should be 100% generic. But then we are missing the lambda functions where we can specify functions in one line.. :)

    Having said that, my personal preference is a bit academic - as these ac>days I spend most of my programming time writing code in Python :-)

    Heh, the STL/C++ is my academic preference.. I'm working at the cphstl.dk..

    cont = set()
    cont.add(5)
    cont.add(7)

    for it in cont:
    print it


    Yep that's nice.. You would probably use "dict" instead?

    I wonder if "dict" is also implemented as a balanced binary search tree
    in python. In the STL you get O(lg n) guarantee for almost all your
    operations on set/map. It's really a nice thing with the complexity
    guarantees.

    Bo

    --- DayDream/Linux 2.15a
    * Origin: The Night Express, Korsoer, geekworld.no-ip.org (2:236/100)
  • From Lloyd Lewis@1:114/464 to Bo Simonsen on Thu May 21 23:55:00 2009
    Bo Simonsen wrote to All <=-

    Hi all,

    Just testing how far this echo comes..

    Bo

    Got it here in Arizona.
    ... A bad day BBSing is better than a good day at work.
    --- MultiMail/Win32 v0.49
    --- SBBSecho 2.12-Win32
    * Origin: Torchwood Three BBS - torchwood-3.dyndns.org (1:114/464)