Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Graeme Geldenhuys
On 26/08/12 13:40, Marco van de Voort wrote: I doubt it. You maybe could (and probably would) in a new language, and have one single stringtype. FPC is closer to 20 stringtypes or types with autoconversions. Thinking hypothetical here... what if FPC 3.0 did just that... Rethink the whole 20

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Mattias Gaertner
On Sun, 26 Aug 2012 18:49:05 +0100 Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 26/08/12 13:40, Marco van de Voort wrote: I doubt it. You maybe could (and probably would) in a new language, and have one single stringtype. FPC is closer to 20 stringtypes or types with

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: FPC is closer to 20 stringtypes or types with autoconversions. Thinking hypothetical here... what if FPC 3.0 did just that... Rethink the whole 20 string types mess, and implement only one string type for 3.0 onwards. How would developers feel about that? What would

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Ivanko B
Rethink the whole 20 string types mess, and implement only one string type for 3.0 onwards. == No, No ! It'll 100% be slow problematic UTF8. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: I doubt it. You maybe could (and probably would) in a new language, and have one single stringtype. FPC is closer to 20 stringtypes or types with autoconversions. (First, while 20 sounds bad, you will keep at least ten-twelve anyway, with

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Graeme Geldenhuys
On 27/08/12 08:04, Mattias Gaertner wrote: http://xkcd.com/927/ :-) G. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Anton Kavalenka
On 27.08.2012 11:51, Michael Schnell wrote: On 08/24/2012 03:14 PM, Mark Morgan Lloyd wrote: Would there be any advantage in reimplementing strings as a tree of classes, If in future TObject is reference (as it might be in a future Delphi version, according to an Embarcadero blog) counting

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Graeme Geldenhuys
On 27/08/12 09:43, Marco van de Voort wrote: Seriously, even if you forget compatibility, it is impossible to assess something like that without in-depth design (and preferably a test implementation). Wouldn't something like Java's String and Character classes already be good in-depth

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Jonas Maebe
marcov wrote on Mon, 27 Aug 2012: Seriously, even if you forget compatibility, it is impossible to assess something like that without in-depth design (and preferably a test implementation). Could always look at Delphi XE3: http://twitter.com/statuses/user_timeline/9146192.rss :) Jonas

Re: [fpc-devel] But what /is/ a string?

2012-08-27 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: Seriously, even if you forget compatibility, it is impossible to assess something like that without in-depth design (and preferably a test implementation). Could always look at Delphi XE3: http://twitter.com/statuses/user_timeline/9146192.rss

[fpc-devel] Recent added support for Observer pattern in FCL

2012-08-27 Thread Luiz Americo Pereira Camara
Back in 2010, in the thread about observer support in fcl, i asked if the actions would be customizable so i could, e.g., notify/observe if a child was added or removed in a tree structure. The answer was yes. Looking at the recent added support, it limit the actions (called operations) to 5