Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Tominator2011

Tominator2011 Tominator20​05

Niner since 2005

A fellow student programmer from Sheffield,UK.Finished studying HND Computing in 2005.
  • Day 1 Keynote - Bjarne Stroustrup: C++11 Style

    Wow, i must be honoured to get a reply from the man himself.

    Thanks for the heads up Bjarne, C++ is really moving up.

    So I can just pass a object by value by using rvalue references.

    That is soo cool.

    Tom 

  • Day 1 Keynote - Bjarne Stroustrup: C++11 Style

    I've just run a test, and you can scope a variable like in Java now ^_^

    it would be like this

    void f(int n, int x){
      Gadget g(n);
       // ...
       if (x < 100) throw std::run_time_error("Weird!!");
       if (x < 200) return;
       /...
    }


    Its amazing to see how C++ is catching up with .NET.
    I've always been a C++ guy.

    Thanks again. 

  • Day 1 Keynote - Bjarne Stroustrup: C++11 Style

    I'm confused at one thing.

    I can understand where he says, shared_ptr and unique_ptr,
    but where he says why use a pointer, and then shows this code:

    void f(int n, int x){
      Gadget g{n};
       // ...
       if (x < 100) throw std::run_time_error("Weird!!");
       if (x < 200) return;
       /...
    }

    I'm  pretty sure C++ wouldn't except that? 

  • SPLASH 2011: Andrew Black and James Noble - The Grace Programming Language Project

    Hi, I was thinking about Grace today, and I came up with an idea for it, its a concept for pointers.
    I'll demonstrate the idea using a table

     

     Feature Name     |         Visual Basic/VBA      |     C/C++    | Grace
     __________________________________________________________
        String Var       |         Dim str$                |        char*          |    char$

                                 |                                        |                          |CharPtr
                   
       Integer Var     |         Dim num%              |        int*            |  int%

                                                                                                   |   IntPtr

      Pointer to type   |         Dim var as T      |    var<T>           |Ptr<T>                                                                         

      okay I'll explain my thoughts now.
    In visual basic or vba, if can define a variable like so :

    Dim name$
    which is the same as saying Dim name as String.
    and In C/C++ you can create a pointer by putting a * after a variable name.

    My Idea is to put the variable type in superscript like the asterisk, thereby creating a typed pointer,
    you can also create a pointer by saying IntPtr or CharPtr for creating an pointer when you need to.
    The superscripted pointer would be of use in function declarations.

    You could for example say:
    CharPtr cPtr  = nullptr; // States the obvious

    But in a function "CharPtr" wouldnt be very effective, so you would do something along the lines of,
    Function func(ByVal name$) instead of Function func(ByVal name CharPtr) although you could say
    Function func(ByVal name as CharPtr).

    Just an idea/concept.

    Tom

    P.S The dollar sign and percent sign are supposed to be subscript after char and int in the table under the grace header, also in the above function names.                                                                                                 

  • Announcing Python Tools for Visual Studio 1.1 Alpha

    Tominator2005: That'd be awesome!

    For the toolbox you probably want to look at the IVsToolbox[2,3,4,5,6] interfaces, you can get an instance of one by calling Package.GetService(typeof(SVsToolbox)). I suspect you call AddItem w/ an IDataObject and then get that same object back when the user drops it onto your editor window.

    My background is a HND in Computing, and I only did a small amount of programming in that, which I regret. Is there anyway, I can contact you via email or messenger. This is gonna be tough job and I'll need occasional help.

  • Announcing Python Tools for Visual Studio 1.1 Alpha

    Sean, what you are doing is amazing. As I have said in my post, I'd love to get involved in this, even though I live in the UK. If you have ever used WxWidgets or PyGTK, a resource editor in Visual Studio for that type of stuff would be awesome. Give me plenty of time, and I can try working on a resource editor for WxWidgets at least, although I have no idea where to start in making toolbox like items for a windows editor.

  • Announcing Python Tools for Visual Studio 1.1 Alpha

    This.....is.....awesome

    Been a programmer and a scripter, this really makes sense.
    I used to create tools for a charity I did Work Experience for, and WxPython was my primary GUI toolkit. Python is brill for admin scripting.

    Having Python for Visual Studio is brilliant, what would be great is if 
    Visual Studio Express came with something like that. 

    Tom  

  • Checking In: Stephan T. Lavavej - Inside STL (the person, not the library)

    @schroedl:ditto

  • Using the Windows Runtime from C++

    I hate to be a killjoy, but thats not C++ herbs other talk covers the 'real' C++,
    this is what I call "C++/CLI" or more precisely C++.NET.

    Still C++0x is pretty cool, got to give it to the developers.

    Keep up the good work.

     

  • C9 Lectures: Stephan T Lavavej - Advanced STL, 6 of n

    @STL An ascii art tree would be good. That way you can see the way the tree set up,
    but one with Parentheses would be good too.

See more comments…