Results 1 to 19 of 19

Thread: very funny MSVC compiler

Threaded View

  1. #4

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Expression templates are used to optimize the use of registers, I'm also using them in a new paradigm Bork, which opens a new dimension in C++, the Bork environment allows infinitely "polymorphic" typing at designtime, unlike the strong typed environment in C++ it will provide the generic flexibility when implementing, combining and extending objects as well as algoritms,

    An example of what you can do currently with some types:

    MyWindow+=Rect(1,2,3,4)+Size(10)*Rect(1,2,3,4)+Width(30)-Square(2)+Convert<my2dprojector>(3dvector(x,y,z))+Green+RGB(3,24,123)+Elephant;

    would move the window 27,13,47,43+the projection of the 3d point, and add the color 3,255,123 to current window color, but the elephant would have no effect on the window, on the other hand it won't slow down the performance. In fact doing this with regular types would take both lots of runtime performance as well as design time struggling. With Bork this is all trivial
    Last edited by kedaman; Dec 31st, 2001 at 07:56 AM.
    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
  •  



Click Here to Expand Forum to Full Width