[fpc-devel] RussianlocaleinformationnotcompatiblewithFPClocalevariables

Boian Mitov mitov at mitov.com
Thu Jul 31 16:17:54 CEST 2008


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" <almindor at gmail.com>
To: "FPC developers' list" <fpc-devel at 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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel 




More information about the fpc-devel mailing list