Re: [fpc-pascal] fpweb tutorial

2010-07-16 Thread ABorka
I've added some words on templates that points to the readme files and the example projects now coming with Lazarus demonstrating the usage of templates. AB On 7/16/2010 00:35, Michael Van Canneyt wrote: On Fri, 16 Jul 2010, Felipe Monteiro de Carvalho wrote: I added a small introduction

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Michael Van Canneyt
On Fri, 16 Jul 2010, Helmut Hartl wrote: Am 16.07.10 12:46, schrieb Michael Van Canneyt: Always learning something new. One is never too old to learn :-) Michael. But one is always able to age faster, while boldly going to where no man has gone baldly before :-) (spelling intentional) Wh

Re: [fpc-pascal] fpweb tutorial

2010-07-16 Thread Marcos Douglas
On Fri, Jul 16, 2010 at 2:23 AM, Felipe Monteiro de Carvalho wrote: > I added a small introduction here: http://wiki.lazarus.freepascal.org/fcl-web > > Having said that, I think that fpWeb worked quite well for my very > simple web page and all kinds of web applications could be developed > with i

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Helmut Hartl
Am 16.07.10 12:46, schrieb Michael Van Canneyt: Always learning something new. One is never too old to learn :-) Michael. But one is always able to age faster, while boldly going to where no man has gone baldly before :-) (spelling intentional) While testing with a simplified usage patt

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Michael Van Canneyt
On Fri, 16 Jul 2010, Reimar Grabowski wrote: On Fri, 16 Jul 2010 10:48:19 +0200 (CEST) Michael Van Canneyt wrote: Var O : MyObject; begin O.MySomething; end. Interesting that you can call them on not initialized objects. I always assumed that they had to be called in a static way:

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Jonas Maebe
Helmut Hartl wrote on Fri, 16 Jul 2010: Am 16.07.10 10:48, schrieb Michael Van Canneyt: It exists already, but is called 'static' Thank you for clarification, in a quick test it seem to work for my use case. When is it likeley that this feature will arrive in 2.4.x ? In 2.4.x, you have to u

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Helmut Hartl
Am 16.07.10 10:48, schrieb Michael Van Canneyt: It exists already, but is called 'static' Thank you for clarification, in a quick test it seem to work for my use case. When is it likeley that this feature will arrive in 2.4.x ? helmut ___ fpc-pas

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Reimar Grabowski
On Fri, 16 Jul 2010 10:48:19 +0200 (CEST) Michael Van Canneyt wrote: > Var >O : MyObject; > > begin >O.MySomething; > end. Interesting that you can call them on not initialized objects. I always assumed that they had to be called in a static way: begin MyObject.MySomething; end. Alwa

Re: [fpc-pascal] "class" methods for objects

2010-07-16 Thread Michael Van Canneyt
It exists already, but is called 'static' program testso; Type MyObject = Object procedure MySomething; static; end; Procedure MyObject.MySomething; begin Writeln('OK'); end; Var O : MyObject; begin O.MySomething; end. Michael. On Fri, 16 Jul 2010, Helmut Hartl wrote: Hel

[fpc-pascal] "class" methods for objects

2010-07-16 Thread Helmut Hartl
Hello, while converting bullet physic code to native fpc, i would find it handy to have something like "class" methods for objects. (Methods without self pointer) (It would enhance the readability of the code much, because I were not forced to move such c++ class functions to global functio

Re: [fpc-pascal] fpweb tutorial

2010-07-16 Thread Michael Van Canneyt
On Fri, 16 Jul 2010, Felipe Monteiro de Carvalho wrote: I added a small introduction here: http://wiki.lazarus.freepascal.org/fcl-web Having said that, I think that fpWeb worked quite well for my very simple web page and all kinds of web applications could be developed with it. Great work.