Code:
$ x=() $ { while read; do x+=("$REPLY"); done; } <<<"$(ls)" $ printf 'count=%d\n' ${#x[@]} count=432 $ wc -l <(ls) 432 /dev/fd/63 $ $ $ { while read; do x+=("$REPLY"); done; } <(ls) -bash: syntax error near unexpected token `<(ls)'
...
$ x=() $ { while read; do x+=("$REPLY"); done; } <<<"$(ls)" $ printf 'count=%d\n' ${#x[@]} count=432 $ wc -l <(ls) 432 /dev/fd/63 $ $ $ { while read; do x+=("$REPLY"); done; } <(ls) -bash: syntax error near unexpected token `<(ls)'
const char* classname(void) {return __PRETTY_FUNCTION__; }
(B)(*(D*)(0));
static_cast<B>(*static_cast<D*>(0));
template<class T1> class A; template<class T1, class T2> class B; template<class T1> class C { friend void A<T1>::f1(void); friend void A<T1>::f2(void); friend void A<T1>::f3(void);
#include <iostream> using namespace std; struct Test { int i; }; int main() { cout << "sizeof i is "<<sizeof ((Test*)(0))->i
template<class PARAMETER> class C { protected: typedef typeof (reinterpret_cast<PARAMETER*>(0))->function() returntype; };
switch (0) { case 1: break; case ("abcd"[1]): break; }
("abcd"[1])
Leave a comment: