Hi!

On Aug 5, 2008, at 7:16 PM, Stewart Smith wrote:

   union {
        struct function func;
        struct engine engine;
   }

Lets not get into Unions :)

BTW the plugins will need to be C++. We can pass structures in, but only for the simplest plugins (aka functions) will you be able to get away with not dealing with C++. Really even those will need to be C++.

Writing a crap ton of mapping functions just to get around dealing with C++ just creates obscurity.

We all may dislike C++, but it is the reality. Trying to fight it just creates a crappy layer that has to be extended. Look at all of the THD wrappers for the storage engines. All of that code will be blown away.

Why?

It is only there to server the purpose of trying to obscure away C++. I do not want any more code that exists singly for the purpose to hide the basic language of what we are written in. We do not need to drink the kool-aid of everything must be OOP, but it is dumb to be spending our time writing:

Structure
Putting pointers to functions in it.
Writing wrappers to not touch any of the members of the function.

What is an object? It just wraps all of the above. Much cleaner.

Now do we need one big giant OOP circus to handle the server? No.

Cheers,
        -Brian


--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/                     <-- Me
http://tangent.org/                <-- Software
_______________________________________________________
You can't grep a dead tree.




_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to