try prefixing by the unit name:
procedure tcls.method(x,y: tt);
begin
if a.equals(x,y) then
...
end;
Thierry
leledumbo wrote:
consider the following code snippet:
unit a;
interface
type
tt = ...
tcls = class
procedure method(x,y: tt);
end;
function equals(x,y: tt): boolean;
im
On Mon 3 May 2010, leledumbo wrote:
> In the code above, equals will refer to tobject.equals instead of equals
> defined in the unit. How can I refer to that one instead?
I'm unable to reproduce your error. Real code that I could actually compile and
run would make this a lot easier.
That said,
consider the following code snippet:
unit a;
interface
type
tt = ...
tcls = class
procedure method(x,y: tt);
end;
function equals(x,y: tt): boolean;
implementation
function equals(x,y: tt): boolean;
begin
...
end;
procedure tcls.method(x,y: tt);
begin
if equals(x,y) then
...
On 3 May 2010 17:08, Jonas Maebe wrote:
>
> http://www.freepascal.org/download.var lists all available stable releases.
I did look there, but only now did I see the Win64 at the bottom of
the list. :-( Initially I saw the first one as "Win32, Win64 and
WinCE", but the link takes you to Win32 down
On 3 May 2010 20:38, Marcos Douglas wrote:
> BTW, is tiOPF life?
Not 100% sure what you mean. Maybe "is it alive?" If so, yes tiOPF is
still actively being used and developed. A new branch was started
recently to work on tiOPF3 features which will include Unicode support
(but FPC is lagging behin
On 3 May 2010 17:10, Lee Jenkins wrote:
>
> I am most interested to hear how tiOPF handles under a threaded environment
> when you move to FastCGI, Graeme.
Well, Peter H. and others have used tiOPF in a threaded environment
for years, so it does work. The only threaded part of tiOPF that I
have u
On Mon, 3 May 2010 14:28:13 -0300
Flávio Etrusco wrote:
> > Needed to change the
> > parameter to be a pointer to the record instead (so the default can be
> > nil), but this creates a
> > trap for the calling code.
> > Else, is there a common trick or workaround?
> >
>
> What trap?
Simply t
On Mon, 03 May 2010 19:15:57 +0100
Martin wrote:
> On 03/05/2010 10:58, spir ☣ wrote:
> > Hello,
> >
> > A few questions on the topic:
> >
> > * Is it possible to define an optional parameter without default value?
> >
> > * Is it at all possible for an optional *argument* not to be the last in
Marcos Douglas wrote:
Lee Jenkins wrote:
My goals in its development has been to ensure that the framwork overall:
A) Not tied to any particular GUI front-end, they should be swappable. I
should be able to present my Model/Controller (or other business logic) in
different UI's such as Flex,
Graeme Geldenhuys wrote:
>
> All HTML code (inside our pascal code) is tagged with class of div id's. We
> then use CSS to adjust our UI the way we want.
>
> For inspiration of this concept, have a look at:
> http://www.csszengarden.com/
>
> All the pages (themes) available is all build with the
Lee Jenkins wrote:
>
> Yes, I had plans to release it open source when its ready for testing,
> probably within 3-4 weeks from now.
This is great!
> The idea of the framework is mainly based on Proxy pattern. You build your
> gui within the server session, similar to how ExtPascal does it thou
On 03/05/2010 10:58, spir ☣ wrote:
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in actual
call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can the
2010/5/3 spir ☣ :
> Hello,
>
> A few questions on the topic:
>
> * Is it possible to define an optional parameter without default value?
>
> * Is it at all possible for an optional *argument* not to be the last in
> actual call? Eg
> procedure p(a:Integer=0 ; b:Integer=0)
> How can the caller
There is a 64-bit cross compiler for Windows, and I have been using it over
the last few months.
I am porting my company's loan calculation DLL from Delphi to FPC. This was
initially done to support 32-bit linux, but the pace has picked up due to a
client who wants to know when a 64-bit version wi
Graeme Geldenhuys wrote:
Our CGI applications (three of them) are just one part of our complete
product. We have a desktop GUI part as well. The CGI applications reuse a
lot of code from the desktop. We implement the Model-GUI-Mediator design
pattern, to split UI code from Business Domain code.
On 03 May 2010, at 15:53, Graeme Geldenhuys wrote:
> Does FPC support 64-bit Windows? If so, is it stable (like 64-bit Linux) or
> still experimental?
http://www.freepascal.org/download.var lists all available stable releases.
Jonas
___
fpc-pascal ma
Hi,
I often hear of developers using FPC on 64-bit Linux. My development
machine is the same. But I can't say I have ever heard of anybody using
64-bit Windows with FPC.
Does FPC support 64-bit Windows? If so, is it stable (like 64-bit Linux) or
still experimental?
Regards,
- Graeme -
--
f
Marcos Douglas het geskryf:
>
> There are HTML code inside Pascal code?
All HTML code (inside our pascal code) is tagged with class of div id's. We
then use CSS to adjust our UI the way we want.
For inspiration of this concept, have a look at:
http://www.csszengarden.com/
All the pages (them
Lee Jenkins wrote:
Here is a short screencast of the framework using the Flex UI layer.
Note that its pretty old and the framework has come a long way since
this screencast and as I said, I'm going through some refactoring now
since I have to change some things for the customer anyway.
ht
Marcos Douglas wrote:
Hi Lee,
So I'm taking advantage of the extra time and refactoring the framework a
bit and implementing a DHTML UI layer now. We looked at ExtJS as well as
YahooUI, OpenLaszlo and a few of the others and eventually decided on Dojo
javascript tookit, but different UI layer
On Mon, May 3, 2010 at 11:07 AM, Graeme Geldenhuys
wrote:
>
> No templates and hard-crafted UI with our own HTML and CSS markup. Our CGI
> apps have a very dynamic interface which is build from information stored
> in a database.
There are HTML code inside Pascal code?
> I only know about FastC
Marcos Douglas het geskryf:
>
> What do you use in UI?
> What about templates, do you use?
No templates and hard-crafted UI with our own HTML and CSS markup. Our CGI
apps have a very dynamic interface which is build from information stored
in a database.
> If you have some news about on learnin
On Mon, May 3, 2010 at 9:41 AM, Graeme Geldenhuys
wrote:
> At the moment we use plain CGI apps.
>
I forgot:
Do you continues using cgiapp unit?
Have you seen Powtils? Here
http://wiki.lazarus.freepascal.org/CGI_Web_Programming recommends.
___
fpc-pasca
On Mon, May 3, 2010 at 9:41 AM, Graeme Geldenhuys
wrote:
> Marcos Douglas het geskryf:
>>
>> I do not knew about this! Can you post a few links of companies using
>> ExtPascal? Would be very good to post these links in list of
>> ExtPascal.
>
> Many are developers I read about in the Lazarus and F
On Mon, May 3, 2010 at 9:37 AM, Rainer Stratmann
wrote:
>
> I don't know what CGI is.
>
Here http://wiki.lazarus.freepascal.org/CGI_Web_Programming
--
Marcos Douglas
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.o
On Mon, May 3, 2010 at 9:37 AM, Rainer Stratmann
wrote:
> I don't know what CGI is. Nevertheless I was able to program a webserver
> completely in freepascal. It isn't that complicate (if you have time).
> If a connection comes in then I prove how many connections are already open,
> and if it exc
Hi Lee,
On Sun, May 2, 2010 at 3:10 PM, Lee Jenkins wrote:
>
> * Virtual Private Hosting is really cheap now, largely alleviating the
> problem of deploying native executables to web servers like FastCGI, ISAPI,
> apache_mod, etc.
Yes, you right.
> I am working on a project now for RIA similar
Marcos Douglas het geskryf:
>
> I do not knew about this! Can you post a few links of companies using
> ExtPascal? Would be very good to post these links in list of
> ExtPascal.
Many are developers I read about in the Lazarus and FPC-users mailing list.
> What about do you think about performan
Am Monday 03 May 2010 14:24:48 schrieb Marcos Douglas:
> On Sun, May 2, 2010 at 2:29 PM, Graeme Geldenhuys
>
> wrote:
> > Some reasons:
> > * Free Pascal is open source (always available and no vendor lock-in)
> > * Free Pascal is free, so can always use latest version at NO cost.
> > * Previou
On Sun, May 2, 2010 at 2:29 PM, Graeme Geldenhuys
wrote:
>
> Some reasons:
> * Free Pascal is open source (always available and no vendor lock-in)
> * Free Pascal is free, so can always use latest version at NO cost.
> * Previous skills from Delphi 7 project can be reused. No need to retrain
>
On Sun, 2 May 2010 22:20:43 +0200
Felipe Monteiro de Carvalho wrote:
> Hello,
>
> I think it would be good if you add a link to your package here:
>
> http://wiki.lazarus.freepascal.org/Components_and_Code_examples
>
Thanks, I'll add it there if some of you test it. (Self-testing one's own to
On Mon, 3 May 2010 16:02:32 +1000
"Paul Nicholls" wrote:
> Hi Denis,
> nice :)
>
> I'm curious, why didn't you make it a class...wouldn't that have made it
> nicer/easier to use and program?
Yes, for sure. Not beeing able to use the OO syntax is really a pain! (Even
inside the LinkedList uni
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in actual
call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can the caller pass b and not a?
* The ref sta
I don't wish to sound negative here, but I think something like
doubly-linked lists is fundamental and doesn't need an implementation
specially made for the FPC community, unless it needs to be adapted to the
language implementation itself or the execution environment.
There must be dozens of impl
Paul Nicholls het geskryf:
>
> I'm curious, why didn't you make it a class...wouldn't that have made it
> nicer/easier to use and program?
My thoughts too.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
_
duilio foschi het geskryf:
> how do I build a minimal 'hello world' CGI application under Free Pascal ?
Can't get simpler than this:
-
program cgitest;
{$mode objfpc}{$H+}
uses
Classes;
begin
writeln('Content-Type:text/html',#10#13);
writeln('');
writeln('FPC Test'
> I'm curious, why didn't you make it a class...wouldn't that have made it
> nicer/easier to use and program?
+1
It should be a class, yes. Now you have loads of global functions.
The integer data type doesn't make much sense but your comment says it will be
changed to generics type. That sounds
Lele,
I need instructions for _dumbier_ users :)
1.
==
>After hosted, CGI can now be used normally as
>http://www.yourserver.com[.xx]/yourlogin/cgi-bin/cginame.exe
(I will use my web browser, I suppose...)
However I have no web site on my server... :(
So where to store and how to call the app
38 matches
Mail list logo