> OK, I lurred myself by taking words too literally. I thought "virtual" meant
> unimplemented, to be implemented in sub-classes.
unimplemented = abstract virtual method
type
something = class
procedure do_something; virtual; abstract;
end;
_
I am new to this technology... I was using isapi, with and isapoloader
dll, that was responsible of the upgrade of the application.
The isapiloader before sending the request to the actual isapi
application, it tried to find if there is a new version of it, with the
same name of the dll but wit
On Sun, 30 May 2010 18:28:47 +0200
Reimar Grabowski wrote:
> On Sun, 30 May 2010 15:03:03 +0200
> spir ☣ wrote:
>
> > PS: is there a round(fractional_size) function? that's the reason why i
> > needed power.
>
> http://community.freepascal.org:1/docs-html/rtl/system/round
>
> R.
Sorry,
On Sun, 30 May 2010 15:03:03 +0200
spir ☣ wrote:
> PS: is there a round(fractional_size) function? that's the reason why i
> needed power.
http://community.freepascal.org:1/docs-html/rtl/system/round
R.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top
On 30 May 10, at 04:00 , spir ☣ wrote:
> So, it seems the language knows (at runtime) about the real type of a
> *value*. I must declare element, the variable, with type C, since I do not
> know anything at coding time. But Pascal correctly calls C1.text, due to
> "virtual" & "override" modifie
On Tue, 18 May 2010 10:47:33 +0200 (CEST)
"Tomas Hajny" wrote:
> On Mon, May 17, 2010 22:25, spir ☣ wrote:
>
>
> Hello Denis,
>
> > I posted a question about timing some time a go and got an answer; but let
> > down for a while because other problems required my attention. So, I need
> > a s
2010/5/30 spir ☣ :
> Hello,
>
> // a & b are ints
> n := a ** b; // error: operator is not overloaded
> n := power(a,b); // error: identifier not found "power"
uses math;
http://freepascal.org/docs-html/rtl/math/power.html
___
fpc-pas
PS: is there a round(fractional_size) function? that's the reason why i needed
power.
Denis
vit esse estrany ☣
spir.wikidot.com
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/ma
Hello,
// a & b are ints
n := a ** b;// error: operator is not overloaded
n := power(a,b);// error: identifier not found "power"
Conversion to real does not help. How can I do?
Denis
vit esse estrany ☣
spir.wikidot.com
__
In our previous episode, Bee Jay said:
> > Then it shouldn't use floating point. Ever.
>
> Well... then it shouldn't be using FPC? ;)
This kind of problems are universal, and TDateTime is a library invention.
If you have an integer date based library, you can use that instead.
> Ok, forget about
On 30 May 2010, at 14:38, Bee Jay wrote:
> 2010, at 19:28, Jonas Maebe wrote:
>
>> Then it shouldn't use floating point. Ever.
>
> Well... then it shouldn't be using FPC? ;)
They should not be using any FPC functionality relying on floating point. Any
person who uses floating point should kn
On 30 Mei 2010, at 19:28, Jonas Maebe wrote:
> Then it shouldn't use floating point. Ever.
Well... then it shouldn't be using FPC? ;)
Ok, forget about the rocket launcher. The important note that I think need to
be addressed is the bug only occurs if the milisecond part of a or b is 0.
Other t
On 30 May 2010, at 14:23, Bee Jay wrote:
> What if an app need a precise and correct result, say a rocket launcher?
Then it shouldn't use floating point. Ever.
Jonas
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.
On 30 Mei 2010, at 19:18, Marco van de Voort wrote:
> IIRC this is normal and delphi compatible and due to TDatetime being a
> floating point type.
No, it's not Delphi compatible. Delphi's result is alot worst, at least on
Delphi 7. And I didn't ask to make it truly compatible with Delphi. ;)
>
In our previous episode, Bee Jay said:
> Hi all,
>
> Try the following code snippet:
>
> uses
> DateUtils;
> var
> a,b: TDateTime;
> i: integer;
> begin
> a := EncodeDateTime(2010, 1, 1, 0, 0, 0, 0);
> for i := 0 to 9 do
> begin
> b := EncodeDateTime(2010, 1, 1, 0, 0, i, 0);
>
On 30 Mei 2010, at 19:06, Michael Van Canneyt wrote:
> But if you want it, it's really easy to do in fcl-web. Create a webmodule,
> implement the OnRequest handler of the module, and add
> Application.Terminate:=True;
> Handled:=True;
> in the handler. Then register the module with the name 'sh
On Sun, 30 May 2010, Bee Jay wrote:
On 28 Mei 2010, at 23:18, Michael Van Canneyt wrote:
I'll have a look at it next week. But it will be under control of an option,
and this option will be 'off' by default.
Another thought about this feature. I think it'd be nice if there's an option
to
Hi all,
Try the following code snippet:
uses
DateUtils;
var
a,b: TDateTime;
i: integer;
begin
a := EncodeDateTime(2010, 1, 1, 0, 0, 0, 0);
for i := 0 to 9 do
begin
b := EncodeDateTime(2010, 1, 1, 0, 0, i, 0);
Writeln(SecondsBetween(a,b):3);
end;
end;
I think the result isn'
This is a follow-up to the previous thread.
Say I put in a TFPList elements of types C C1 C2, where C is a super-class.
When I retrieve an element using
var element : C;
...
element := C(list[index]);
text := element.text;
...
what is the actual type of element? and of its value?
On Sat, 29 May 2010 16:54:44 -0700
Andrew Hall wrote:
> On 29 May 10, at 15:26 , spir ☣ wrote:
> > I cannot do that. C0 (and all classes) instances need a text method. I also
> > cannot have 2 methods (one static, one virtual) with different names. It's
> > a basic feature, always called with t
Am 20.05.2010 um 11:21 schrieb Hartmut Eilers:
>> If it is you can resolve it using the C preprocessor using a command
>> line similar to this one:
>
>> cpp --no-stdinc comedi.h > comedi.cpped.h
>
>> Afterwards try h2pas again.
>
> I tried the above mentioned fix with the following result:
>
>
On 28 Mei 2010, at 23:18, Michael Van Canneyt wrote:
> I'll have a look at it next week. But it will be under control of an option,
> and this option will be 'off' by default.
Another thought about this feature. I think it'd be nice if there's an option
to shutdown the app gracefully. What I me
22 matches
Mail list logo