Sort for example:
It can work with C type array:
int a[7] = {23, 1, 33, -20, 6, 6, 9};
sort(a, a+7);
or it can work with a container such as linked list:
list<Something> v1;
sort(v1.begin(), v1.end());
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
----- Original Message -----
From: "Ales Katona" <[EMAIL PROTECTED]>
To: "FPC developers' list" <fpc-devel@lists.freepascal.org>
Sent: Thursday, July 31, 2008 7:11 AM
Subject: Re: [fpc-devel]
RussianlocaleinformationnotcompatiblewithFPClocalevariables
Boian Mitov wrote / napísal(a):
Generics can't implement conceptual programming. As example for
conceptual programming you can perform the same algorithm on simple
arrays such as "char Array[ 1000 ]" as you can on any STL compliant
container. The integrator concept is implemented different way but since
it is concept as Sort algorithm will work. Generics do not allow that.
With generics you can do Generics based programming but not concept based
programming.
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
I also thought you ment generics.
Please provide (for example C++) code example, I still don't get what you
mean.
Ales
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel