× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 19/07/2008, at 10:32 AM, Rory Hewitt wrote:

Ah yes - you *can* indent, but only if you're indenting within / free and
/end-free. However, there's nothing to stop you putting /FREE and / END-FREE
round your /COPY statements, whether they're in the middle of your D-spec or
whatever. Now this is only, obviously, of use if you're going to do a bunch
of conditional-compilation statements on their own and then some simple ones
later, but this would work:

Cunning! I don't recall ever putting directives inside /FREE and /END- FREE blocks. Since all of my includes are definitions I list them amongst the D-specs. It wouldn't have occurred to me to use /FREE in the D-specs. What a strange person you must be :)

It's really ugly, but of course, you could stick it all in a copybook :-)

Yes, I think even uglier than my alternative. I don't see any advantage to your approach. The additional condition testing and setting doesn't reduce the number of duplicated lines. Thanks for helping anyway.

BTW, I assume this is just an example, because the above version could be
massively simplified - if X is ever defined, doStuff is function4 etc.


It was just an example and the last pair of tests resulting in function4 should have resulted in function5.


Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.