AFAIK default parameters can only be simple types, not complex types
like records.
Well... it certainly appears to be so...
Although, I did get the following program using a default
class parameter to compile and run.
Kinda defeats the purpose (low overhead). I'll stick with two simple
31.12.2010 7:53, Darius Blaszyk wrote:
I installed 2.5.1 just to test if it was possible to use static class methods
or not. Apparently not so it seems. It was a good try, but it failed. Thanks
anyway for the help and explanation Jonas.
Try {$mode delphi}.
Best regards,
Paul Ishenin
Jonas Maebe kirjoitti tiistai 28 joulukuu 2010 12:31:08:
Delphi's UnicodeString supports holding strings with arbitrary encodings
(not just UTF-16), along with transparent re-coding of strings when
assigning them to unicodestrings whose codepage has been statically
defined at compile time.
In our previous episode, Jonas Maebe said:
On 28 Dec 2010, at 11:22, Juha Manninen wrote:
What is the difference between the current FPC's UnicodeString and
Delphi's UnicodeString? I am confused with all these string types and
encodings.
Delphi's UnicodeString supports holding
Marco van de Voort kirjoitti perjantai 31 joulukuu 2010 13:04:27:
In our previous episode, Jonas Maebe said:
Delphi's UnicodeString supports holding strings with arbitrary encodings
(not just UTF-16), along with transparent re-coding of strings when
assigning them to unicodestrings whose
2010/12/31 Juha Manninen juha.mannine...@gmail.com:
UTF-16 needs codepages, too.
I don't think so. What would a code page be used for with UTF-16.
UTF-16 itself is already an encoding, implictly stating one and only
one code page, if it can be named a code page.
Vincent
In our previous episode, Juha Manninen said:
Widestring (refcounted 2-byte type) , it is the ansistring type (1-byte
type) that gets codepage support.
UTF-16 needs codepages, too.
I think only the 4-byte char type (is it UTF-32) would solve all encoding
problems.
codepageencoding
All
On Dec 31, 2010, at 10:43 AM, Paul Ishenin wrote:
31.12.2010 7:53, Darius Blaszyk wrote:
I installed 2.5.1 just to test if it was possible to use static class
methods or not. Apparently not so it seems. It was a good try, but it
failed. Thanks anyway for the help and explanation Jonas.
On Dec 31, 2010, at 1:53 PM, José Mejuto wrote:
Hello FPC-Pascal,
Friday, December 31, 2010, 1:53:31 AM, you wrote:
DB I installed 2.5.1 just to test if it was possible to use
DB static class methods or not. Apparently not so it seems. It was a
DB good try, but it failed. Thanks anyway
On Fri, Dec 31, 2010 at 11:01 AM, Darius Blaszyk
dhkblas...@zeelandnet.nl wrote:
Thanks for the tip Paul. Unfortunately it did not help. See for the results
below.
Using a correct type cast it should work. Which line brings the errors?
--
Felipe Monteiro de Carvalho
On Fri, 31 Dec 2010 14:03:27 +0100
Darius Blaszyk dhkblas...@zeelandnet.nl wrote:
Unfortunately I need a platform independent method to handle this. So
assembler is not really the way I want to go, unless it proves to be the only
way.
Now you know why I called glut a major PITA and using
On Fri, 31 Dec 2010, Darius Blaszyk wrote:
On Dec 31, 2010, at 10:43 AM, Paul Ishenin wrote:
31.12.2010 7:53, Darius Blaszyk wrote:
I installed 2.5.1 just to test if it was possible to use static class methods
or not. Apparently not so it seems. It was a good try, but it failed. Thanks
On Dec 31, 2010, at 2:06 PM, Felipe Monteiro de Carvalho wrote:
On Fri, Dec 31, 2010 at 11:01 AM, Darius Blaszyk
dhkblas...@zeelandnet.nl wrote:
Thanks for the tip Paul. Unfortunately it did not help. See for the results
below.
Using a correct type cast it should work. Which line brings
On Dec 31, 2010, at 2:23 PM, Reimar Grabowski wrote:
On Fri, 31 Dec 2010 14:03:27 +0100
Darius Blaszyk dhkblas...@zeelandnet.nl wrote:
Unfortunately I need a platform independent method to handle this. So
assembler is not really the way I want to go, unless it proves to be the
only way.
I've just taken our name server down for maintenance, and noted that a
db-aware app I'd left running ground to a halt despite the fact that it
was only activating queries, not establishing new (named) connections.
The connection was being made by host name rather than by dotted-quad
address,
In our previous episode, Juha Manninen said:
What I have understood so far:
WideString uses UTF16 encoding. It is managed by Windows and so is not
reference counted by Delphi or FPC under Windows. However it is reference
counted by FPC on other platforms.
Then FPC has UnicodeString which is
16 matches
Mail list logo