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/ )
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
On Sun, Oct 20, 2013 at 4:47 AM, Michael Van Canneyt 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 support multiple release
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 unfo
On Sat, Oct 19, 2013 at 12:12 AM, Anthony Walter 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.
>
> http://bugs.freepascal.org/view
On Oct 5, 2013 2:34 PM, "Philippe" 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:
- https://github.com/tangentstorm/xpl
On Sep 29, 2013 8:24 AM, "Patrick" 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 day, but rarely
open Lazarus.
On Thu, May 2, 2013 at 2:34 PM, Michael Van Canneyt
wrote:
> 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 something about ob
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
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
http://lists.freepascal.org
On Fri, Jan 11, 2013 at 4:19 AM, Juha Manninen wrote:
> 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:
https://github.com/tangentsto
11 matches
Mail list logo