I would prefer to see some sort of IDE functionality that some how hid
platform specific code, according to some selector, rather than #if tests
throughout the code, or macro functions. I would say though that I would
welcome the ability to set any function/method as #inline - which could be
argued to be just a type safe form of macro....
One would then be able to switch between different "views" dependent on
platform or just a name. so there could be a "view" for debug, beta and
release mode, as well as view layers for specific platforms. Have to admit
I
don't have any firm picture of how exactly this would be implemented, but
then that's down to will and brain brawn.
At least for platforms, I "emulate" this by having separate methods for each
platform where needed.
For example, let's say that MyClass.DoThis has to be platform specific
because it calls OS APIs. MyClass.DoThis will branch to three separate
methods:
MyClass.macDoThis
MyClass.winDoThis
MyClass.linDoThis
It may sound like overkill, and I don't do it for simple methods, but with
complex methods it's nice to just see the platform code you're concerned
about.
I would welcome the ability to choose views based on #if statements.
Daniel L. Taylor
Taylor Design
Computer Consulting & Software Development
[EMAIL PROTECTED]
www.taylor-design.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>