Hallo Michael, Du schriebst am Thu, 14 Nov 2013 08:34:57 +0100:
> > You could also decide to make "pos" take a return variable parameter ... > Con: > (1) if the position is needed, you need to introduce a variable and > (alas) Martin declined to allow for intermediate variables within the How's that? I don't recall there was any mention that there should not be any local variables within a procedure or function. (Indeed; I'd even see it favourably if there was _no_ access to global variables from that scope.) > (2) you can't do (sensible) constructs like str1 := copy (str2, > pos(str3, str2) + length(str2), 10); This is _not_ a sensible construct, as "str3" might not be contained within "str2". You _will_ have to check before, and then you might decide to "optimize" a little by using an intermediate variabel for the position value anyway, so it doesn't have to be calculated (strings scnanned) twice. Or would you require the compiler to second guess your possible intention and introduce the additional code for the safety check by itself? -- -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

