KDE/kdelibs

Jarosław Staniek js at iidea.pl
Sat Oct 15 15:24:18 CEST 2005


Ralf Habacker said the following, On 2005-10-15 08:22:

> Am Dienstag, 11. Oktober 2005 23:28 schrieb Jarosław Staniek:
> 
>>Ralf Habacker said the following, On 2005-10-11 23:15:
>>
>>>Am Dienstag, 11. Oktober 2005 22:50 schrieb Jarosław Staniek:
>>>
>>>>Ralf Habacker said the following, On 2005-10-11 20:51:
>>>>
>>>>>Am Dienstag, 11. Oktober 2005 18:37 schrieb Jarosław Staniek:
>>>>>
>>>>>>David Faure said the following, On 2005-10-11 18:30:
>>>>>>
>>>>>>>On Tuesday 11 October 2005 18:27, Jaroslaw Staniek wrote:
>>>>>>>
>>>>>>>>+2005-10-11
>>>>>>>>+ It's good idea to append always a space to string definitions:
>>>>>>>>+ obj.libs = ' lib1 lib2 ' instead of 'lib1 lib2' because then
>>>>>>>>+ adding
>>>>>>>>+
>>>>>>>>+  obj.libs += 'lib3'
>>>>>>>>+
>>>>>>>>+  will cause horrible error: 'lib1 lib2lib3'
>>>>>>>>+                                      ^^
>>>>>>>>+
> 
> 
> After thinking a while about this stuff, what about to prefix a ' ' instead of 
> appending until the overload  stuff is ready, which seems to me more nature. 
> When I'm working with strings I always take care about  delimiters in the 
> appended string like this 
> 
> strcpy(dest,"a") 
> strcat(dest, " b")
> 
> instead of 
> 
> strcpy(dest,"a ") 
> strcat(dest, "b")

No problem; BTW I hope to take some time this weekend to polish the overload 
stuff.




-- 
regards / pozdrawiam,
  Jaroslaw Staniek / OpenOffice Polska
  Kexi Developer:
      http://www.kexi-project.org | http://koffice.org/kexi
  KDE3, KDE4 libraries for developing MS Windows applications:
      http://wiki.kde.org/tiki-index.php?page=KDElibs+for+win32



More information about the Kde-buildsystem mailing list