Re: [fpc-pascal] Chaining method calls

2020-03-24 Thread Michal Wallace via fpc-pascal
Hi Ryan, It's possible. Just change your declaration of `c`: var c: TBase; It still prints TMyClass at the end. Of course, you're only going to have access to methods that are declared in TBase. You can also approach this sort of thing with interfaces... -Michal ( http://tangentstorm.com/ )

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-14 Thread Michal Wallace
Hey Craig, I've been experimenting with anonymous functions in FPC and have working code, but they're not at all like what Delphi provides: https://github.com/tangentstorm/tangentlabs/blob/master/pascal/funops.pas (On the other hand, they require 0 compiler changes...) I asked about lambdas in

[fpc-pascal] docs on freepascal.org vs lazarus-ccr.sourceforge.net

2013-10-20 Thread Michal Wallace
So... The top google result for free pascal TComponent is: http://www.freepascal.org/docs-html/rtl/classes/tcomponent.html This is 8 months old. The updated page doesn't show up in the results at all: http://lazarus-ccr.sourceforge.net/docs/rtl/classes/tcomponent.html I find this

Re: [fpc-pascal] docs on freepascal.org vs lazarus-ccr.sourceforge.net

2013-10-20 Thread Michal Wallace
On Sun, Oct 20, 2013 at 4:47 AM, Michael Van Canneyt mich...@freepascal.org wrote: That the lazarus project generates their docs from the current trunk version is unfortunate, especially since they actually use a released version of the FPC compiler. FPC does not have the manpower to

Re: [fpc-pascal] Bug: both record and class helpers no longer work

2013-10-19 Thread Michal Wallace
On Sat, Oct 19, 2013 at 12:12 AM, Anthony Walter sys...@gmail.com wrote: I've tested going back to September revision 25577 both class and record helpers are broken. They work in simple stand alone units, but when you bring in the LCL and other units they fail to compile.

Re: [fpc-pascal] Re: build a compiler for GO32v2 under Windows 8 (or 7)

2013-10-08 Thread Michal Wallace
On Oct 5, 2013 2:34 PM, Philippe phili...@quarta.com.br wrote: Problem!(?) ... I was using window, gotoxy and so on ... and I donĀ“t find anything similar with video unit! I don't know if this would be useful to you, but I've been working on a modernized CRT for some time: -

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Michal Wallace
On Sep 29, 2013 8:24 AM, Patrick patr...@spellingbeewinnars.org wrote: I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I would rather use the shellr then clicking on a build button. For what its worth, I use free pascal practically every

[fpc-pascal] Generic Observables

2013-05-02 Thread Michal Wallace
Hey all, I was experimenting with using some of FPC's features together and came up with this: https://github.com/tangentstorm/lazmvc/blob/master/umodel.pas Basically, it's just a generic implementation of the Observer design pattern. It provides a class, TModel, tha you can use as an interface

Re: [fpc-pascal] Generic Observables

2013-05-02 Thread Michal Wallace
On Thu, May 2, 2013 at 2:34 PM, Michael Van Canneyt mich...@freepascal.orgwrote: You are aware that the classes unit contains the observer pattern, and together with the fpmediators it has all you need to implement the MVC model (through mediators) ? Nope. :) I actually had thought I'd seen

[fpc-pascal] what happened to the contributed units listing?

2013-02-06 Thread Michal Wallace
The database of contributed pascal code seems to have disappeared: http://www.freepascal.org/contrib/db.php3 Anyone know where it went, or how to get it back? :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] State of fcl-stl generics lib

2013-01-13 Thread Michal Wallace
On Fri, Jan 11, 2013 at 4:19 AM, Juha Manninen juha.mannine...@gmail.comwrote: For example, if someone is developing a competing generics library, could he be advised to improve fcl-stl instead? Would patches be accepted? Hi there. I have been working on a few generic types here: