>2) dynamic arrays can index directly into records and write to fields but
the [] operator overload can’t do this.
I don't understand this, can you provide an example ?
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal ma
>> It would be reasonable to assume that the predefined + might be
>> substantially more efficient than a programmer-defined one could be.
>Yes, that's one of the reasons I vote for keeping the new feature
>and allow to overload the operator.
I don't think that argument holds water. Concatenatio
>Why are you using dynamic arrays for vectors/matricies? If what you have is
an actual array you wish to grow then + would likely be an append operation.
Dynamic arrays are incredibly convenient for purposes like signal processng,
whe you need to handle large blocks of numeric data in variable si
> ## "+" operator
> The compiler now implements a "+" operator for arrays which is the same
> as if Concat() would be called on the arrays.
> Note regarding backwards compatibility: existing "+" operator overloads
> for dynamic arrays no longer compile.
Are you serious ? I have been using dynamic
I encountered an odd problem, however reliably reproducible under both
windows 7 and 10, 32bit, with FPC 3.0.2 and 3.0.4. (NOT with Lazarus 1.6.4
which uses FPC 3.0.2 but 64bit)
When compiling my program with debug info using fpc -B -g, the compiler
hangs just before generating the exe file. It se
As I understand this: It may sometimes well be necessary to write your own
destructor to clean up. But if you do this, don't call it foo; call it
destructor and override it: destructor destroy; override;
In your own destructor method, don't forget to call inherited in the end.
--
View this me
Just a note - I learned that for very short "for" loops it may be even a bit
faster to count downwards (to zero) rather than upwards if possible, because
the comparison to zero is very effiicient. Not sure though whether that
still makes a difference on modern processors.
--
View this message in
Steve probably means "when passed 'E1' or 'E2' etc."
Indeed IsNum ('E1') interprets it as zero and delivers TRUE.
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Possible-bug-in-Numeric-test-tp5724297p5724319.html
Sent from the Free Pascal - General mailing lis
I would do it like this
test(TBytes.Create (65, 66, 67));
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/How-to-pass-an-array-of-bytes-directly-in-a-TBytes-param-tp5724202p5724215.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.