Unicode mode (string=UnicodeString) is fully supported for Delphi, but not for FPC.
Our framework is 100% Unicode, but using UTF-8, as all data backends and JSON expects.
Only on the LCL/VCL is the string type involved.
{$ifndef UNICODE}
type
/// low-level API structure, not defined in older Delphi versions
TOSVersionInfoEx = record
<SOME CODE HERE>
end;
{$endif UNICODE}
...
var
...
/// the current Operating System information, as retrieved for the current process
OSVersionInfo: TOSVersionInfoEx;
When project configured to use key -MDelphiUnicode.
TOSVersionInfoEx is not available and application can't compile.
Also there is another issues as well.
-MDelphiUnicode is not supported for now?
---
FPC 3.2.0 with fixes.
@vonH
The trunk changes can be found here: http://wiki.freepascal.org/User_Changes_Trunk
I leave it to hnb to explain more about NewPascal, but in general, NewPascal is a very recent trunk without the dangers of trunk.
as AOG said: NewPascal is a very recent trunk without the dangers of trunk (for mORMot)
NewPascal is compatible with FPC trunk, but not vice versa (for some time).
Many things has changed. We have unexpected and positive effect of NewPascal - I've started close cooperation with FPC core team and finally many areas (critical for mORMot) are improved. Current list of differences between NewPascal and FPC: http://newpascal.org/compass.html
Very short list in section "NewPascal individual changes" may be expanded in the future. Each item in "NewPascal individual changes" should be merged with FPC trunk (sooner or later). Some time ago "NewPascal individual changes" list was much, much longer.
Please note that http://wiki.freepascal.org/User_Changes_Trunk is not yet updated (no info about newest RTTI changes and management operators - http://free-pascal-general.1045716.n5.n … 7716.html)
]]>d.ioannidis wrote:... there is no need for special mormot version ...
that is true. newpascal-ccr/mORMot was created as temporary solution:
1. to host binary files in repository for supported platforms
2. was created for initial support for Mac.
3. as important part of CI for NewPascalAll is merged now into "upstream" mORMot repository, so even NewPascal CI system uses https://github.com/synopse/mORMot .
What are the additional benefits in NewPascal besides better support for mORMot?
Is there a list of its new features and some code to illustrate them in comparison with FPC? Are they things that the average user might need in their everyday programming? I haven't used any of the newer languages like C# and even the newer versions of Delphi.
Is NewPascal always compatible with the FPC trunk branch it is forked from?
]]>... there is no need for special mormot version ...
that is true. newpascal-ccr/mORMot was created as temporary solution:
1. to host binary files in repository for supported platforms
2. was created for initial support for Mac.
3. as important part of CI for NewPascal
All is merged now into "upstream" mORMot repository, so even NewPascal CI system uses https://github.com/synopse/mORMot .
]]>Is newpascal-ccr/mORMot designed to work with stable versions of FPC, eg FPC 3.0.2 and 3.0.0? I read somewhere that it is a version of newpascal/mORMot with some fixes to allow it work on FPC 3.0.2 etc?
there is no need for special mormot version, currently I'm using mormot trunk with fpc 3.0.2 after the hard work of Alfred (AOG), see https://synopse.info/forum/viewtopic.php?id=3852 .
regards,
]]>I also noticed this announcment on the FPC mailing list - Feature announcement: Interface RTTI - http://lists.freepascal.org/pipermail/f … 50021.html
Does this mean that future versions of mORMot will work directly with FPC trunk without needing any fixes to it?
]]>However, this separate mORMot is (only) created for the benefit of the NewPascal initiative.
This NewPascal has some features that require (small) changes in the mORMot source.
If things are more or less stabilized, the changes could/should be merged with official mORMot. After review.
Much better to have a single source, also because changes required are minor.
But untill then, you are free (with FPC) to use the special mORMot !
]]>Latest mORMot for FPC here: https://github.com/newpascal-ccr/mORMot/
Dear AOG, does this mean that we can download zipped archive from that github link and replace the c:\NewPascal\ccr\mORMot ?
If yes, can you comment whether you can keep mORMot in your github link above always sync with http://synopse.info/fossil/timeline ?
Many thanks !
]]>Now I finally found the "ccr" sub-folder on NewPascal dir. That put a smile on my face!
The tests are running just fine (well, some errors, but I think those are the expected ones).
]]>I'm starting with mORMot, and trying to use it with FPC and Lazarus.
Downloaded the IDE from NewPascal, opened via link (Lazarus_NewPascal.lnk) and everything works fine. But when I've tried to open TestSQL3.lpi, the IDE starts flickering (??? it must be something with this release of Lazarus), I can build just fine, but I can't make it run. Got this misterious error:
TestSQL3.exe
An unhandled exception occurred at $00463D64:
EAccessViolation: Access violation
$00463D64
$00480A4D
$0047B204
$0047B2F2
$005CA7EA
$005BF60C
$005BE66A
$005BE6E9
$004B5EB9
$0040E134
Is it something I've missed, or have to wait for a new version of FPC?
Unfortunately, it's out of my plans to get back to Delphi IDE. I found very very pleasant the proposals of mORMot framework on the development subject (Service Oriented Architecture, and DDD, to name a few), but if Delphi is a price, maybe I can't afford.
(Sorry about my poor english. Hope I can help the project somehow)
]]>