Manuel Francisco Naranjo wrote:
>
> > Be mindful that
> >
> > |int a;
> > a = 1;
> > int b;
> > b = a+1;
> > |
> >
> > Will not work on MS compilers. All the variable declarations must be
> > at the top.
> > Thus windows_usb.c lines 584 & 2366 also break MSVC compilation.
>
> Really? Is that stupid?

No, it's smart, it's just smart C89.  Microsoft has not implemented C99,
and has not given a timeline for doing so.  Virtually all important
Windows code is done in C# or C++.

On a related note, I've never understood why the Linux world clings so
tightly to C.  Many of the improvements in C99 were introduced because
of C++.  In the C++ world, the delta between MSVC and gcc is very, very
small.  You don't have to dive hip-deep into templates and
metaprogramming and inheritance; it's quite viable to use C++ as a
better C.  In my experience, most programming solutions are more clearly
expressed in C++ than in C.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to