JoshЖ 9,806 Posted January 7, 2012 Share Posted January 7, 2012 I was going to try moving the Leadwerks3D code into a leadwerks.leadwerks3d module, but I discovered the namespace system doesn't really work when you try to override BRL's classes. You CAN specify brl.stream.TStream or leadwerks.leadwerks3D.TStream, but you get problems when you try importing another file in your code. Even if your imported code file includes both modules and explicitly declares the variable type using the namespace, the program still can't compile. The whole module/namespace system doesn't seem to be designed like it was meant to be taken seriously. Since BMX is free updates for life, I don't really this improving. I just reverted to the last SVN commit and will continue prefixing all functions and types with "LE". Quote Link to post Share on other sites
JoshЖ 9,806 Posted January 9, 2012 Author Share Posted January 9, 2012 I got a reply from Mark Sibly pretty quickly. It may work out so we can have a more standard module without the command prefixes... Quote Link to post Share on other sites
Aily 27 Posted January 9, 2012 Share Posted January 9, 2012 I got a reply from Mark Sibly pretty quickly. It may work out so we can have a more standard module without the command prefixes... leMoveEntity(...) is not big deal. Working with Xors3D all commands are same, just "x" prefix there, so no big trouble with this. Quote Link to post Share on other sites
macklebee 883 Posted January 9, 2012 Share Posted January 9, 2012 it would be preferred from my perspective if we dont have the prefixes just from the concept of keeping commands the same between languages... Quote Link to post Share on other sites
Game Producer 4 Posted January 15, 2012 Share Posted January 15, 2012 LE prefix is just ok, nothing to worry there Quote Link to post Share on other sites
macklebee 883 Posted January 15, 2012 Share Posted January 15, 2012 its useable but if you don't have to use the prefix then why not get rid of it? Quote Link to post Share on other sites
JoshЖ 9,806 Posted February 17, 2012 Author Share Posted February 17, 2012 The current version of BMX will work with some combinations of modules, and not with others, so it's partially fixed. Since I would have to send additional examples to Mark, describe the problem, test his results on Windows and Mac, and no one else seems to be even doing this, I am not going to pursue it. I am just writing here because this is an example of knowing when to quit something that isn't important. The benefits of using a module namespace are not overwhelming, and continued testing would eat more resources than I want to devote to this. It works fine now with the "le" prefix on everything, and doesn't require any additional effort, so I am moving on. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.