|
-
Feb 6th, 2002, 08:46 PM
#1
Thread Starter
transcendental analytic
INTERNAL COMPILER ERROR in VC.NET
Yep, it's not impossible, it just doesn't like my templates.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Feb 7th, 2002, 11:19 AM
#2
Thread Starter
transcendental analytic
A B C - on how to crash VC7 compiler
The trick seems to be access to parameterized members of a self typedef, accessing regular members works, and accessing without self typedef works, but M$ hasn't tried out exactly everything. Maybe I should work for them and try to crash all their compilers 
PHP Code:
struct A{typedef A B;template <class T>struct C{};};
typedef A::B::C<int> D;
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Feb 7th, 2002, 11:45 AM
#3
Thread Starter
transcendental analytic
A solution to the problem as well...
typedef A::B E;
typedef E::C<int> D;
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|