Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9056
| From | "Paul" <pchristor@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: C++ and directories |
| Date | 2011-08-18 20:38 +0100 |
| Organization | Netfront http://www.netfront.net/ |
| Message-ID | <j2jpoe$29kc$1@adenine.netfront.net> (permalink) |
| References | <_8j2q.43956$nj1.56@newsfe19.iad> <pan.2011.08.16.10.57.57.450000@nowhere.com> <4e4a57af$0$3063$7b1e8fa0@news.nbl.fi> <pan.2011.08.17.12.09.54.512000@nowhere.com> <4e4bbbea$0$4367$7b1e8fa0@news.nbl.fi> |
"Juha Nieminen" <nospam@thanks.invalid> wrote in message news:4e4bbbea$0$4367$7b1e8fa0@news.nbl.fi... > Nobody <nobody@nowhere.com> wrote: >> On Tue, 16 Aug 2011 11:42:39 +0000, Juha Nieminen wrote: >> >>> Anyways, is there a reason why the C++ standard couldn't include a >>> library similar to boost::filesystem? >> >> A third-party library has more leeway. It's up to the third-party >> developer whether "it sort-of works, on common platforms" is good enough. >> If e.g. an OS vendor complains that the interface is a poor match for >> their OS's filesystem semantics, the boost developers can just say >> "tough luck". But the ISO standardisation process is rather more >> involved. > > Not everything even in the current standard is something that *must* > work on every system in existence. > > For example, where does the output of std::cout (or printf from that > matter) go? There actually *are* systems which have no concept of > standard output streams, and std::cout/printf can hence fail (for example > printf returns the amount of printed characters for this precise reason). > > However, std::cout/printf work in the vast majority of systems, and > programs written using them are usually not even intended to be run on > those obscure (usually embedded) systems that have no support. (Have you > ever seen a "hello world" program in C or C++ that actually checks that > printing succeeded? The fair assumption can be made that if you have > a system with no standard output you wouldn't be running such a program > on it anyways.) > > (Ok, the printing can fail for other reasons as well, eg. if standard > output is redirected to a file and an error happens. Of course trying to > handle this kind of error from the program itself would be quite > difficult.) > > I think a file system library is feasible even for the C++ standard, > especially if it includes means to check that the target architecture > has proper support. If so then shouldn't it be the case that if a std directory lib is standardised it should work on all systems that have a file directory system? Obviously it would be up to common sense to decide that its not going to work on a system with no file directories, just as is the case with the STD I/O not working on a system without an I/O system. --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-15 17:49 -0700
Re: C++ and directories Ian Collins <ian-news@hotmail.com> - 2011-08-16 12:55 +1200
Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:15 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-16 11:57 +0100
Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-16 11:42 +0000
Re: C++ and directories Marc <marc.glisse@gmail.com> - 2011-08-16 11:49 +0000
Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:58 +0000
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 16:02 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 13:09 +0100
Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-17 13:02 +0000
Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 18:11 +0100
Re: C++ and directories "Paul" <pchristor@yahoo.co.uk> - 2011-08-18 20:38 +0100
Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:03 -0700
Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:06 -0700
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 15:24 +0000
Re: C++ and directories "Bo Persson" <bop@gmb.dk> - 2011-08-17 12:39 +0200
Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-17 11:39 +0000
Re: C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-22 10:06 -0700
csiph-web