Running this code in Delphi 7 gives the exception below:
var
V: Variant;
D: TDateTime;
begin
ShortDateFormat := 'dd/mm/'; // the problem occurs regardless of
the format option
V := '20/04/2011';
D := V;
Memo1.Lines.Add('Date: ' + DateToStr(D)); // required to avoid dead
code
So, what should be done?
1) Be totally compatible with Delphi: convert date to string with
hardcoded format and raise exception when doing the conversion back?
2) Use the hardcoded format used to convert from vardate variant to
string and vice versa?
3) Use shortdateformat to convert from var
2011/4/1 Joost van der Sluis :
> Hi all,
>
> I've just committed a change in the Makefiles for the fcl-web package.
> The Makefile now calls fpmake to build and install the package.
>
> It's a first test, so please try and report any problems you have when
> building the fcl-web package. (Or all pa
In our previous episode, Vincent Snijders said:
> > Hi all,
> >
> > I've just committed a change in the Makefiles for the fcl-web package.
> > The Makefile now calls fpmake to build and install the package.
> >
> > It's a first test, so please try and report any problems you have when
> > building
On Mon, 4 Apr 2011, LacaK wrote:
Michael Van Canneyt wrote / napísal(a):
On Mon, 4 Apr 2011, LacaK wrote:
Hi,
This fix
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/src/base/fields.inc?r1=17199&r2=17220
fixes mising call to TField.Validate (before data are written
Hello together!
Today I have run the final tests on the helper branch and I'm satisfied
with their results, thus I'd like you to review and hopefully merge my
work. The wiki page I have started will be updated as soon as I find the
time.
Both "class helpers" and "record helpers" are implemen
On 4/4/2011 02:28, Sergei Gorelkin wrote:
Unfortunately I don't have recent Delphi, but here are results of some
quick testing with Delphi 7:
a) Only *assignment* Variant -> TDateTime is broken, explicit casting
(e.g. VarAsType(v, varDate)) works.
b) Conversion is done using Windows API (in
On 4/4/2011 04:34, LacaK wrote:
So, what should be done?
1) Be totally compatible with Delphi: convert date to string with
hardcoded format and raise exception when doing the conversion back?
2) Use the hardcoded format used to convert from vardate variant to
string and vice versa?
3) Use sh
Hello,
I tried searching the archives manually but this is a bit time consuming, I
also tried the search function on the website but it seems broken.
Anyway my question is the following:
Are there any plans to add OpenCL/CUDA/PTX support for the future ?
With this question I do not mean DLL
Hello,
I would like to experiment with the pascal programming language at the
binary/assembler/machine level.
For example compile pascal sources to virtual machine instruction sets.
I took a look at the free pascal sources and there seem to be some
assemblers inside the folders.
I see clas
Hello,
I kinda forget to mention something in my previous posting to this mailing
list, but perhaps it should go into a seperate thread anyway:
As I mentioned in the previous posting with subject: "Adding a new assembler
to Free Pascal Compiler"... I am interested in using free pascal compile
On 4/4/2011 10:28, michael.vancann...@wisa.be wrote:
On Mon, 4 Apr 2011, LacaK wrote:
Michael Van Canneyt wrote / napísal(a):
On Mon, 4 Apr 2011, LacaK wrote:
Then please move approprate code at least into
TCustomBufDataset.SetFieldData
Thanks
This code was already there.
Should th
05.04.2011 3:51, Sven Barth wrote:
Both "class helpers" and "record helpers" are implemented and work as
Delphi compatible as reasonably possible.
Congratulations.
Some notes regarding the tests:
* three record helper tests (trhlp*) fail, because nested types are not
supported by (advanced)
https://forums.codegear.com/thread.jspa?threadID=52117&tstart=0
We can check it out and do some comparisons now.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
Answering my own question ;)
I guess the answer to my question is more or less the same as the following
question:
"How to add a new target to free pascal compiler".
And I found this webpage which explains it a bit:
http://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target
I'll quo
Hmm... one of the reasons why I might not have found this documentation is
because of this:
At the wiki/documentation link:
"
Online documentation
Remark:you must have javascript and style sheets enabled in order to view
the html documentation correctly.
The following documents are online a
Then please move approprate code at least into
TCustomBufDataset.SetFieldData
Thanks
This code was already there.
Should the 'Validate' code be moved there too ?
Yes. TDataset descendants are responsible to calling Validate, e.g.,
zeos call it inside TZAbstractRODataset.SetFieldData.
I
On 05 Apr 2011, at 01:48, Skybuck Flying wrote:
> Are there any plans to add OpenCL/CUDA/PTX support for the future ?
No. At least I'm not aware of anyone working on this.
Jonas
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.f
On 02 Apr 2011, at 15:35, Joost van der Sluis wrote:
> Done. Can someone who actually knows how to do that trigger a retry of a
> testsuite-run, and a new testsuite-mail?
Building still fails on darwin, I think because of a missing dependency on
univint:
Start building package fcl-web for targ
Am 05.04.2011 04:27, schrieb Paul Ishenin:
> We probably can extend these tricks for other types and may be speedup
> the compiler.
>
> I think your branch should be reviewed either by Florian or by Jonas
> before the merge.
I can review the coding style etc. but not if the semantics or syntax of
20 matches
Mail list logo