> I'm unable to reproduce your error. Real code that I could actually compile
and
> run would make this a lot easier.
Perhaps you're using an old version of the compiler where TObject doesn't
have Equals method (added for Delphi compatibility along with UnitName and
ToString)
> prefixing by the
Hello FPC-Pascal,
Wednesday, May 5, 2010, 11:23:42 PM, you wrote:
FC> Is the an LCL routine that can get the timezone from the computer on both
FC> Windows and Linux? None of the examples mention a way of getting the
FC> computer's time zone.
Usually you will have an environment variable TZ, but
Is the an LCL routine that can get the timezone from the computer on both
Windows and Linux? None of the examples mention a way of getting the
computer's time zone.
On 27 April 2010 20:57, Marco van de Voort wrote:
> In our previous episode, Frank Church said:
> > attempt is based on the method
Am Mittwoch, den 05.05.2010, 11:29 +0200 schrieb Hartmut Eilers:
> comedi.h:
>
> 494
> 495 static inline unsigned NI_USUAL_PFI_SELECT(unsigned pfi_channel)
> 496 {
> 497 if(pfi_channel < 10)
> 498 return 0x1 + pfi_channel;
> 499 else
> 5
And as also explained in my original mail: An array does not guarantee
that the identifier(stand alone) can be used for the first element.
That's just the root cause of the problem: An idenifier should *always* mean
the same address in memory. Otherwise you cannot use such low level functions
On 05 May 2010, at 11:28, spir ☣ wrote:
> So, I have 3 questions:
> -1- Why isn't an unallocated pointer nil?
Pascal, like C and many other languages, does not automatically initialise
*all* variables in a program. It's a basic design decision of the language.
> -2- Why is it at all possible t
Hello,
Is there a cross platform (Linux and Windows) Bluetooth library for FPC ?
Thanks,
Ido
http://ik.homelinux.org/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Wed, 5 May 2010 13:44:40 +0200
José Mejuto wrote:
> The same applies to Pascal, my previous example is badly designed, but
> better than the first one. The problem here is try to use "move" as a
> Pascal way of do things. Move is low level function that should be
> used to optimize code when y
On 05/05/2010 06:34, Jürgen Hestermann wrote:
So why is it a problem, that one is a pointer, and the other not?
Because it is easier, or more often overlooked.
The problem is not that one is a pointer (to an array) and the other
one is the array itself. That would be fine if it is told to the
Hi Duilio,
duilio foschi wrote:
> from the documentation of ExtPascal:
> file:///C:/ExtPascal/help/Overview.html (bottom part)
> the Parser can be adapted to read the documentation of another
> JavaScript framework, Dojo for example.
Yes, he can, but the code generated contains the same classes
> Constants (values) or variable values (variables).
Let's not forget assignable constants that must be typed :-)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello FPC-Pascal,
Wednesday, May 5, 2010, 10:49:24 AM, you wrote:
>> In computer science, an array data structure or simply array is a
>> data structure consisting of a collection of elements (values or
>> variables) [...]
s> ???
s> What does this mean? As far as I know, "variable" in CS can
s> h
Hello FPC-Pascal,
Wednesday, May 5, 2010, 8:54:01 AM, you wrote:
>> architectures. Much better would be "move
>> (array1[0],array2[0],elements*sizeof(element))" but even in this case
>> the result is undefined, but it is a bit more exact as the programmer
GG> Now this is a perfect example, of why
Hello,
First, I found a very good introduction material to pointers at
http://cslibrary.stanford.edu/. The author, "Nick Parlante" (nickname?) really
has a great pedagogical talent.
Below some code and output tracing a typical pointer's life cycle:
=== code ===
procedure PointerLifeCyc
Hallo Pascal Hackers,
Henry Vermaak wrote:
> This is a function that takes an enum param and returns an enum:
> function comedi_set_global_oor_behavior(behavior:
> comedi_oor_behavior): comedi_oor_behavior;
thank you Henry, I check this out.
the comedilib.h has a "include comedi.h" statement so
On Wed, 05 May 2010 07:34:41 +0200
Jürgen Hestermann wrote:
> Say that it is a pointer to an array (and do not let the user think it is "an
> array"!). And say that although it is a pointer you still cannot derefference
> it but you need to use the first index to get the beginning of the array.
From: Aleksa Todorovic on May 5, 2010 3:13:12 PM
>As of copying/moving array elements, why don't you use
simple for loop
for that?
Because of performance optimization. TStringlist.Delete() and
TStringlist.InsertItem() itself uses Move() instead of such loop.
_
On 5 May 2010 09:42, Hartmut Eilers wrote:
> Hello Pascal Hackers,
>
> I try to translate the comedilib to pascal. I use h2pas with the
> following params:
> h2pas -e -D -p -w -u comedilib -l comedilib -o comedilib.pas comedilib.h
>
> I get the message:
> at line 79 error : syntax error
>
> Lin
On Tue, 4 May 2010 23:49:00 +0200
José Mejuto wrote:
> In computer science, an array data structure or simply array is a
> data structure consisting of a collection of elements (values or
> variables) [...]
???
What does this mean? As far as I know, "variable" in CS can have 3 senses,
depending
Hello Pascal Hackers,
I try to translate the comedilib to pascal. I use h2pas with the
following params:
h2pas -e -D -p -w -u comedilib -l comedilib -o comedilib.pas comedilib.h
I get the message:
at line 79 error : syntax error
Line 79 of comedilib.h is:
enum comedi_oor_behavior comedi_set_g
On Wed, May 5, 2010 at 07:34, Jürgen Hestermann
wrote:
>> So why is it a problem, that one is a pointer, and the other not? Because
>> it is easier, or more often overlooked.
>
> The problem is not that one is a pointer (to an array) and the other one is
> the array itself. That would be fine if i
>> I am working on a project now for RIA similar in concept to ExtPascal, but
>> abstracting out the UI framework with most of the logic executing on the
>> server so that I can plug in different UI's without touching my
>> model/controller.
>
> That is what I looking for!
> That is what I looking
Redmine is cooler. People experienced with both prefer it.
I dabbled with Trac a few years ago, but never even got round to using it
for bug tracking etc.
Redmine appears to have been designed with project management in mind from
the very start. In all fairness it doesn't take much time to setup,
23 matches
Mail list logo