Slashdot Mirror


User: dalleboy

dalleboy's activity in the archive.

Stories
0
Comments
98
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 98

  1. Generic generics? on C# 2.0 Spec Released · · Score: 2, Informative

    After reading this I'll understand that C# generics really suck, big time, compared to C++ templates.

    The constraints are really a pain in the butt, as you must specify what interfaces that the 'generic' type must implement, and not what specific methods of the interfaces that the generic type must implement. What you say, you may think: But if I wanted any type that has a method named 'void Print()' to be executed by my generic class, all of those types must implement a named interface (IPrintable). That is perhaps OK if I have full control over the source code, but whatif I'm using a library written by someone else?

    If you don't specify a constraint the 'generic' type will effectivly be of type Object, and we all know how much we can do with the type Object. Hmm, let me think, oh yeah: ToString. No need for generics there.

    The examples in the spec are also mostly container class examples, wonder why? Perhaps that the generics of C# can't do anything but (or mostly) container (or container like) classes.

  2. Link to specs on New BTX Form Factor Announced At IDF · · Score: 5, Informative

    The specs pdf for those whose browser doesn't handle backslashes.

  3. Re:Huh? on New Longhorn Screenshots Leaked · · Score: 1

    Good thinking, sue Microsoft for the defects/bugs in their software. If you win the lawsuit (rather unlikely thinking of the size of Microsoft's legal department) you will open up a number of opportunities for people using Linux (or any other system for that matter) when they encounter a defect/bug. Think of the world when encountering a defect/bug will result in a paycheck of $10M, there would be a lot of millionaries in the world but no programs as noone would ever dare to publish anything.

  4. Most significantly it can handle PR0N on New High-End HP Calculator? · · Score: 0, Offtopic
    When reading (from the PDF presentation):
    "Most significantly it can handle RPN or Algebraic mode entry system logic and familiar textbook entry."
    I read it as:
    "Most significantly it can handle PR0N or ..."
    I'm /. damaged for life...
  5. Consoles add hard-disks, PC:s removes them on Lindows Webstation · · Score: 1

    Strange things happens, consoles (X-Box for now) starts to have hard-disks, but PC:s are removing them.

  6. Syntax on QT 3.2 Released · · Score: 1

    Sure the boost syntax is a bit gnarlier, but not much. As on the flexibility of Qt it has a lot of limitations (http://doc.trolltech.com/3.2/moc.html).

    // Boost.Signals usage:

    class boost_signal_holder
    {
    public:
    void send_signal(int i)
    {
    boost_signal(i);
    }

    void connect_slot(const boost_signal_type::slot_type& slot)
    {
    boost_signal.connect(slot);
    }

    typedef boost::signal<void (int)> boost_signal_type;

    boost_signal_type boost_signal;
    } boost_signal_holder_object;

    class boost_slot_holder : public boost::signals::trackable
    {
    public:
    void boost_slot(int) { /* ... */}
    } boost_slot_holder_object;

    // Connect signal to slot.
    boost_signal_holder_object.connect_slot(boo st::bind(
    &boost_slot_holder::boost_slot, &boost_slot_holder_object, _1));

    // Qt usage:

    class qt_signal_holder : public QObject
    {
    Q_OBJECT

    public:
    void send_signal(int i)
    {
    emit qt_signal(i);
    }

    void connect_slot(const QObject* receiver, const char* receiver_slot)
    {
    QObject::connect(this, SIGNAL(qt_signal(int),
    receiver, receiver_slot);
    }

    signals:
    void qt_signal(int);
    } qt_signal_holder_object;

    class qt_slot_holder : public QObject
    {
    Q_OBJECT
    public slots:
    void qt_slot(int) { /* ... */}
    } qt_slot_holder_object;

    // Connect signal to slot.
    qt_signal_holder_object.connect_slot(&qt_sl ot_holder_object,
    SLOT(qt_slot(int)));

  7. Why moc? on QT 3.2 Released · · Score: 3, Interesting

    When are they dumping the Meta Object Compiler (moc) and switch over to Boost.Signals?

  8. Re:$1550 just to use it? No thanks. on QT 3.2 Released · · Score: 1

    Make that $4660 (a bit less if you're many) per developer (with Qt TrioPack, Enterprise Edition). TrioPack to have any use of the multi-platform capabilities and Enterprise Edition to use the QTable class.

    And after that you'll have to pay $1450 (a bit less if you're many) per developer and year if you want any maintenance and support.

    Ain't that cheap?

  9. Obligatory Sovjet Russia joke on Microsoft Improves Its Licensing Terms · · Score: -1, Redundant

    In Sovjet Russia, Licensing Terms improves Microsoft...

  10. Re:What is the next step? on Jazilla Milestone 1 Released · · Score: 1

    ... and call it Internet Explorer?

  11. What is the next step? on Jazilla Milestone 1 Released · · Score: 1

    Is the next step to rewrite Mozilla in .NET?

  12. I have no hands... on Why is Everyone Still Stuck in QWERTY? · · Score: 1

    ...you insensitive clod!

  13. We Like The Moon on Bombing the Moon for Water · · Score: 1

    Don't touch it, because We Like The Moon!

  14. Any updates? on "Time-Traveler" Busted For Insider Trading · · Score: 1

    "Weekly World News will continue to follow this story as it unfolds. Keep watching for further developments."

    Any updates on this story?

  15. Re:Templates are the best C++ feature imho....BUT. on C++ Templates: The Complete Guide · · Score: 2, Interesting

    Name one compiler that is 100% C++ standard compliant.

  16. QuickTime sux on Second Episode of The Animatrix Released · · Score: 1

    Playing the downloaded mov-file on my 2.4GHz P4 512MB RAM Windows computer results in a really laggy experience. Why doesn't Apple ever go bankrupt?

  17. m00t on Master of Orion 3 Released · · Score: 1

    ... or was it w00t?

  18. Serial ATA II on Serial ATA and AGP 8X motherboards · · Score: 1

    Don't forget Serial ATA II http://www.serialata.org/news/S2why.pdf

  19. Re:Uhm...Okay. Wait a minute. on Terahertz Imaging:Another Way to See Through Walls · · Score: 2, Funny

    Windows ain't easy to install (without all the gibberish) and it takes a lot more than a minute...

  20. Re:How Solar Sails Work on Humans Will Sail To The Stars · · Score: 1

    But won't it stop halfway there?

  21. Re:It's easy to crack on Search for Terrestrial Intelligence · · Score: 1

    Opps, missed a post up there, disregard this post...

  22. It's easy to crack on Search for Terrestrial Intelligence · · Score: 1

    - Remove all the linefeeds.
    - Remove the first 69 chars in the textfile.
    - Insert linefeeds so that every line is 127 chars wide.

    And what do we get from this?

    - PI
    - Pythagoras formula
    - Our solar system
    - Some basic chemestry formulas
    - A picture of our cells
    - A map of Earth
    - And some stinky pr0n

  23. Don't operate during takeoff, landing or inflight on New iMac Announced · · Score: 1

    Environmental requirements:

    Maximum operating altitude: 10,000 feet