Re: [fpc-pascal] fp universal library ?

2014-02-26 Thread Michael Schnell
On 02/25/2014 02:58 PM, Fred van Stappen wrote: I am extremely happy to announce the birth of the universal uos library version 1.0. uos (United Open-libraries of Sound) unifies the best open-source audio libraries. GREAT Any documentation to make this usable ? -Michael

Re: [fpc-pascal] fp universal library ?

2014-02-26 Thread Fred van Stappen
> GREAT > Any documentation to make this usable ? > -Michael All the examples have lot of explanations. ;-) There is also a wiki for uos : >> http://wiki.lazarus.freepascal.org/uos The only things to change for uoslib are: In uses section, add uoslib_h in place of uos. And to

Re: [fpc-pascal] fp universal library ?

2014-02-26 Thread Michael Schnell
On 02/26/2014 12:17 PM, Fred van Stappen wrote: There is also a wiki for uos : >> http://wiki.lazarus.freepascal.org/uos Looks nice. I wonder if uos would allow for this use of DSP-Effects: - read a wav file and output it to a new wav file ("playing" it is not necessary/sensible here) - on

Re: [fpc-pascal] fp universal library ?

2014-02-26 Thread Fred van Stappen
>> PS : I will do a wiki for uoslib too. OK, updated >> http://wiki.lazarus.freepascal.org/uos PS : I think that the code of the examples in /fpc_examples from >> https://github.com/fredvs/uoslib are more self-explained... Thanks. Fred. __

Re: [fpc-pascal] fp universal library ?

2014-02-26 Thread Fred van Stappen
>> I wonder if uos would allow for this use of DSP-Effects: >>- read a wav file and output it to a new wav file ("playing" it is not necessary/sensible here) >>on the fly "insert" a DSP effect (i.e. run the samples through an effect processor) >> the parameter(s) of the

[fpc-pascal] How to add new methods in a existent generic type?

2014-02-26 Thread silvioprog
Hello, I'm trying to add new features in a third generic type. Please see this simulation below: { TThirdGeneric } generic TThirdGeneric = class private FFoo: T; public procedure Post; property Foo: T read FFoo; end; { TMyGeneric } generic TMyGeneric = class(TThirdGen

Re: [fpc-pascal] How to use generics and meta class?

2014-02-26 Thread silvioprog
2014-02-25 5:45 GMT-03:00 Sven Barth : [...] > So, which syntax to use generic and meta class? >> > > What might work (untested) is this: > > === code begin === > > type > > generic TMyGeneric = class > public type > TMyGenericClass = class of TMyGeneric; // in mode Delphi this would be >

Re: [fpc-pascal] How to use generics and meta class?

2014-02-26 Thread silvioprog
Oops... 2014-02-26 12:16 GMT-03:00 silvioprog : [...] > I tried that but: > > "Identifier not found "TMyGenericClass"". > Full test below: generic TMyGeneric = class public type TMyGenericClass = class of TMyGeneric; end; TMyService = class public class procedure RegisterItem

Re: [fpc-pascal] How to add new methods in a existent generic type?

2014-02-26 Thread Sven Barth
Am 26.02.2014 16:11, schrieb silvioprog: Hello, I'm trying to add new features in a third generic type. Please see this simulation below: { TThirdGeneric } generic TThirdGeneric = class private FFoo: T; public procedure Post; property Foo: T read FFoo; end; { TMyGene

Re: [fpc-pascal] How to use generics and meta class?

2014-02-26 Thread Sven Barth
Am 26.02.2014 16:16, schrieb silvioprog: Can I use this "metatype" in other class? E.g.: generic TMyGeneric = class public type TMyGenericClass = class of TMyGeneric; end; TMyService = class public class procedure RegisterItem(aItemClass: TMyGenericClass); // maybe "aItemClas

Re: [fpc-pascal] How to use generics and meta class?

2014-02-26 Thread Sven Barth
Am 26.02.2014 16:16, schrieb silvioprog: Can I use this "metatype" in other class? E.g.: Just as a general remark: Outside of a generic's declaration or the implementation of its methods you *must not* (and *can not*) use it without "<...>" and the "..." needs to be a valid type (this includes

Re: [fpc-pascal] How to add new methods in a existent generic type?

2014-02-26 Thread silvioprog
2014-02-26 13:28 GMT-03:00 Sven Barth : > Am 26.02.2014 16:11, schrieb silvioprog: > > Hello, >> >> I'm trying to add new features in a third generic type. Please see this >> simulation below: >> >> { TThirdGeneric } >> >> generic TThirdGeneric = class >> private >> FFoo: T; >> public

[fpc-pascal] Property attributes

2014-02-26 Thread Joao Morais
Hello list. What is the current status of property attributes? Some roadmap? http://wiki.freepascal.org/Property_attributes ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to add new methods in a existent generic type?

2014-02-26 Thread silvioprog
2014-02-26 16:15 GMT-03:00 silvioprog : > 2014-02-26 13:28 GMT-03:00 Sven Barth : > [...] Generics power: https://raw.github.com/silvioprog/dopf/master/demos/entity/demo1.lpr Soon, I'll: storage.Entity.Id := 3; storage.Entity.Name := 'Sven'; storage.Save; // storing entity ... storage.Modify;