Re: Euphoria 2.5
- Posted by cklester <cklester at yahoo.com> Jul 29, 2004
- 668 views
Derek Parnell wrote: > > cklester wrote: > > I admit I've never really fretted over using s[length(s)] > > And neither have I. Its the much more commonly used ... > > if A_Very_Long_But_Meaningful_Identifier_Name[ > length(A_Very_Long_But_Meaningful_Identifier_Name)] = '\n' then > A_Very_Long_But_Meaningful_Identifier_Name = > A_Very_Long_But_Meaningful_Identifier_Name[ 1 .. > length(A_Very_Long_But_Meaningful_Identifier_Name)- 1] > end if > > that I have high hopes for. Yes, those are the cases for which I see some benefit here. > if A_Very_Long_But_Meaningful_Identifier_Name[$] = '\n' then > A_Very_Long_But_Meaningful_Identifier_Name = > A_Very_Long_But_Meaningful_Identifier_Name[ 1 .. $-1] > end if Nice, huh? :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/