On 27/11/2006, at 9:47 PM, Daniel Stenning wrote:
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.
You need to be careful about distinguishing storage from presentation.
As there are (now) two textual forms of RB code, something like a #if
is needed.
However, there's no reason why the equivalent of a code-folding
editor couldn't be used to hide stuff within the other branches, with
the essential option of still displaying it (imagine applying a fix
and needing to apply it to all platforms).
Object Master used to allow you to toggle the meaning of defines
within its Smalltalk-style browser and it would then apply a special
italic style to the code within a #false branch, so you could see
what wasn't applicable. Hiding code is just an extension of this
technique.
A corollary would be being able to choose to hide or not in search
results.
Andy
_______________________________________________
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>