Re: [fpc-pascal] Helpers for objects (not classes)

2015-03-24 Thread Michael Schnell
keyword can be avoided a certain modifier "Class" creates the appropriate types (of course keeping the "Object" and "Record" language construct as syntax candy for compatibility. With that helpers and some more stuff would be ubiquitously usable. -Michael __

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-26 Thread Michael Schnell
s? As the work that needs to be done by the OS is a lot more than what is done by the fpc library, I suppose that there is no noticeable difference. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-27 Thread Michael Schnell
I suppose the User-program/OS relation is not that different regarding the file size. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-27 Thread Michael Schnell
nonymous parallel loop" library might be the better way to go I stopped working on that. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-28 Thread Michael Schnell
09. It was mentioned in several discussions. So I had the - seemingly wrong - impression that it already is available. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Michael Schnell
On 06/17/2015 02:53 PM, Michael Van Canneyt wrote: Using the HTML5 canvas is IMHO the worst possible approach to programming the web. A WEB GUI such as the QNAP NAS boxes provide seems very appropriate. I did not find out what tool set they use :-( . -Michael

Re: [fpc-pascal] Help building FPC on armhf

2015-06-28 Thread Michael Ring
onditional parsing the extra defines above might help (or not .) Michael Am 28.06.15 um 14:16 schrieb Andrew Brunner: On 6/28/2015 4:47 AM, Jonas Maebe wrote: 1) the error you get means that the "fpc" binary is not in your path. Building FPC always has been and always will be onl

Re: [fpc-pascal] Help building FPC on armhf

2015-06-29 Thread Michael Ring
I think I now remember having the same problem before, can you please try to build with "-O-" instead of -O2 ? In the past the compiler threw an exception in system.pas, perhaps it now displays an error message. Michael Am 29.06.15 um 14:13 schrieb Andrew Brunner: On 6/28/20

Re: [fpc-pascal] Help building FPC on armhf

2015-06-29 Thread Michael Ring
At least for debian the values for Floating point should be OK for the Wandboard: "Currently the Debian armhf port requires at least an ARMv7 CPU with Thumb-2 and VFP3D16." (https://wiki.debian.org/ArmHardFloatPort) Michael Am 29.06.15 um 14:41 schrieb Jonas Maebe: Andrew Brunne

Re: [fpc-pascal] Delphi mode for new features?

2015-07-02 Thread Michael Schnell
not at all "pascal like" this supposedly is not a good idea for a thingy called "free Pascal". -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Delphi mode for new features?

2015-07-02 Thread Michael Schnell
to shrink dramatically. Hopefully some wile come over to fpc. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Error compiling fpc for ARM embedded

2015-07-03 Thread Michael Ring
buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-O2" BINUTILSPREFIX=arm-none-eabi- || exit 1 sudo make installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-O2" BINUTILSPREFIX=arm-none-eabi- || exit 1 Michael

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-29 Thread Michael Schnell
on streams, be that Threads or tasks (or multiple processors, ) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-29 Thread Michael Schnell
count is over the top. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-29 Thread Michael Schnell
phore can have - counting / not counting - if taken by a precess/thread will the same process/thread block/count when it tries a second take ? - if taken by a precess/thread is a different process/thread allowed to free it ? - ... -Michael ___ fpc-p

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/29/2015 01:06 PM, Michael Schnell wrote: On 07/29/2015 12:35 PM, Serguei TARASSOV wrote: critical sections are not. Hmmm I suppose this is "fpc speak". Thinking about this I feel that "CriticalSection" (the official name of this functionality is Mutex) and &

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/30/2015 10:50 AM, Michael Van Canneyt wrote: CriticalSection and TEvent derive their names from Windows OS calls, adopted by Delphi and hence by FPC. There is nothing FPC specific about it. OK. Thanks for the clarification. I understand that the computer science names ate Mutex and

Re: [fpc-pascal] *SPAM* Re: Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/30/2015 02:21 PM, Sven Barth wrote: Event (binary Semaphore) and CriticalSection (process local Mutex). I see. Thanks, -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] ARM-embedded & Interrupt numbers

2015-08-14 Thread Michael Ring
enough to write procedures with the correct name: procedure SysTick_interrupt; [public, alias: 'SysTick_interrupt']; begin inc(Systick_Timestamp); end; but for configuring interrupts in nvic the constants actually could help. Michael Am 14.08.15 um 13:33 schrieb Marc Santhoff: Hi Koenra

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Michael Schnell
predictable (as any software random generator is) ? Decent Wifi hubs use hardware of some kind. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Michael Schnell
if it would use /dev/urandom, the rand() would be as unpredictable as /dev/urandom unless you fetch more more than some 2 Gig numbers But I suppose you can set randseed in user code, as well, if you want to. -Michael ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Michael Schnell
act random numbers are just a matter of taste. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
Cross compiling with fpc is not for that faint of heard. (Been there some years ago) Please let us know where you get. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
was no real problem, as I could test the complete software on a PC before moving it to the NAS. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Michael Schnell
On 08/17/2015 10:14 AM, Michael Schnell wrote: I would set randseed via randseed Grrr. I would set randseed via /dev/urandom -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Michael Schnell
On 08/17/2015 11:15 AM, Michael Van Canneyt wrote: In short: People interested in crypto grade randomness should use specialized routines, not the built-ins provided by FPC. +1 As said: random numbers are a matter if taste (or of the application) e.g. : I once did a project where we such a

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-17 Thread Michael Schnell
t. So we (me and a nice guy from Vienna who already started to write a documentation on Lazarus cross compiling and remote debugging, which I promised to translate into English) gave up. -Michael ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] shift right operation with variables

2015-08-18 Thread Michael Schnell
everybody. I never rely on the hidden rules behind this mechanism (which even might be different in Pascal and C. but prefer using intermediate variables for sake of clearness. You can be sure that GCC optimizes those away. I hope fpc does the same. -Michael __

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
installed). (Now as there will be new fast low-power Intel CPUs available for embedded use (e.g. on Q7 boards) I have no hope any more that the company ever will port the huge Delphi project they maintain to ARM. So I am free to privately move from Lazarus to MSEIDE :-) :-) :-) ) -Michael

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
terface and that it uses up very little RAM on the ARM Site. But I feel that this nowadays is not very important any more. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
to do some software for the QNAP :-) . Thanks again, -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
will compile the same way, but I never tried. You need to have cross-binutils installed as you need arm-linux-gnueabihf-* tools to be able to successfully compile. Michael Am 18.08.15 um 04:16 schrieb Chris Moody: On 08/15/2015 08:46 PM, Chris Moody wrote: On 08/15/2015 07:40 PM, Karol

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
understand that Chris is using a linux system so the commands should be fine. Michael Am 18.08.15 um 18:01 schrieb John Lee: Did I miss something? - where does it it get the rtl & compiler source? TIA John On 18 August 2015 at 16:27, Chris Moody <mailto:inqu...@greensnakedesign.com&

Re: [fpc-pascal] Different idea

2015-08-18 Thread Michael Ring
Try this link for instructions on how to compile: http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/ Von meinem iPad gesendet > Am 19.08.2015 um 06:11 schrieb Chris Moody : > > > >> On 08/18/2015 02:34 PM, Chris Moody wrote: >>> On 08/18/2015 02:29 PM, Graeme Gelde

Re: [fpc-pascal] Different idea

2015-08-19 Thread Michael Schnell
nly a rather simple dedicated "embedded" unit replacing the "simulation" unit (providing the same classes) was done to have it compile and run on the ARM. On the GUI-less target this could be tested with some simple "writeline" Debug outputs. -Michael ___

[fpc-pascal] Windows IOT Core

2015-08-19 Thread Michael Schnell
) But IO don't see why native fpc programs should not be runable. (Is there already a Windows 10 / ARM RTL ?) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Different idea

2015-08-19 Thread Michael Schnell
takes a lot of RAM -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
x27;t know whether mingw has something suitable there). OK, This is the answer regarding ARM (e.g. running on a RASPi) that I did expect. What about the Intel brand of WIN IOT Core ? I read that Microsoft claims that "there is only one Windows 10)" so the RT API should be non existing or

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Michael Schnell
fpc (which would need to do that for all OSes) So you need to do "flat" library calls: no objects, no strings, ... -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
). I thought IOT Core would have been a strategy to fight Linux. But if it does not allow to run decent software this will not work. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
IOT Core DevKit including the "MinnowBoard Max" and he runs Delphi programs on same. And he is really happy with the performance of the Device. So fpc programs compiled for Windows should run out of the box. -Michael ___ fpc-pascal mailli

Re: [fpc-pascal] Linking FPC units with Visual Studio 2013 projects

2015-08-21 Thread Michael Schnell
ither statically nor dynamically). You need to do a "flat" interface between the parts of the project using e.,g. STDCALL on either site. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/m

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-21 Thread Michael Schnell
ed as well). +1 it also would be great to make the Intel brand of IOT Core in Virtual box on Linux to allow for doing Linux and Windows development on a single machine without needing to buy a "real" Windows. -Michael ___ fpc-pascal maillist

Re: [fpc-pascal] Linking error with unit initc on arm

2015-08-21 Thread Michael Schnell
once installed the complete code sourcery cross development suite (including Eclipse). After having done this, cross linking fpc projects was no problem any more (including building fpc itself to be run on the ARM Target). But I don't think I'd like to recommend that method

Re: [fpc-pascal] quality of FPC random

2015-08-27 Thread Michael Schnell
unsolvable problem. Finding a really large Prime is a standard task, anyway. Of course x(0) should be created using a nice entropy method. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailma

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
s" is the name for two completely different things 1) the IDE 2) the LCL library. If you just want to compile a project that needs the LCL, you don't need to start the IDE, but you can compile the project from the command line using just

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
"Lazarus (Component Library)" ). Of course to be absolutely correct I should have written: When installing "Lazarus" you usually install two completely different things at the same time: 1) the IDE 2) the LCL library. -Michael __

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Michael Schnell
On 09/25/2015 11:32 AM, Mattias Gaertner wrote: I also ask you kindly to stop spreading FUD. Sorry for triggering this nonsense-discussion :( -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] STM32F407?

2015-10-11 Thread Michael Ring
STM32F407 and STM32F429 share the same reference Manual so they should be highly compatible. Which Board do you own, a Discovery board or MicroE Board? Michael Am 12.10.15 um 03:31 schrieb Andrew Haines: Hi, I've seen on the list that the STM32F429 has some support in fpc now! A coup

Re: [fpc-pascal] STM32F407?

2015-10-12 Thread Michael Ring
I checked the F429 unit, it is a little incomplete. I will talk to Jeppe Johansen that we provide a more complete version and perhaps also a version directly for the f407 Michael Am 12.10.15 um 13:13 schrieb Andrew Haines: It is the discovery board. Andrew On October 12, 2015 2:49:37 AM

Re: [fpc-pascal] variable declarations with 'absolute' syntax

2015-10-13 Thread Michael Ring
;-) There's a lot of use in embedded targets: const ADC1_BASE = $40012000; var ADC1 : TADC_Registers absolute ADC1_BASE; Am 13.10.15 um 21:14 schrieb Bart: On 10/13/15, Graeme Geldenhuys wrote: So what is (code example) of valid syntax when the Integer Expr

Re: [fpc-pascal] Does TThread.Execute terminate thread on exit?

2015-11-02 Thread Michael Schnell
of memory management and not of any relevance to the thread execution. the Thread behavior (including thread safeness or variables etc) is a completely independent issue from the memory (class-instance) organization. -Michael ___ fpc-pascal mailli

Re: [fpc-pascal] alternatives for "cwstring" and "cthreads"

2015-12-15 Thread Michael Schnell
might be considered Futex functionality ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ARM CMSIS support

2016-01-09 Thread Michael Ring
hen they both on same feature level as the existing code. Also more examples will come with the new commit. If you are interested in testing let me know... Michael Am 09.01.16 um 00:55 schrieb Jeppe Johansen: Yes, you understand it correctly :) The FPC RTL only exposes the hardware, not the

Re: [fpc-pascal] ARM CMSIS support

2016-01-09 Thread Michael Ring
ompiler you can target your board directly: ppcrossarm -WpDISCOVERYF407VG (see ppcrossarm -i for other Discovery boards) You should also refrain from using optimizations > -O1 as there are some issues with the compiler that make your compiled binary unusable. Michael Am 09.01.16 um 13:42 schri

Re: [fpc-pascal] building arm cross compiler on FreeBSD

2016-01-10 Thread Michael Ring
=arm-none-eabi --disable-multilib --program-prefix=arm-none-eabi-| || |sudo make install will install the tools to /usr/local| || || or try this version from freshports: https://www.freshports.org/devel/gcc-arm-embedded/ It also builds gcc, which of course you do not need. Michael Am 10.01.16 um

Re: [fpc-pascal] Writing floating points to steams

2016-01-12 Thread Michael Schnell
sy to do your own TStream.WriteDateTime procedure and friends. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Writing floating points to steams

2016-01-15 Thread Michael Schnell
be either propriety (defined by the *single* application that uses them) or Text-based (such as XML or "INITFILE"). -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-15 Thread Michael Schnell
On 01/15/2016 07:48 AM, Christo Crause wrote: The focus of the code is to get accurate delays down to a few cpu cycles. This is impossible when running in any normal OS.(Of course you can run an fpc project "bare bone" without an OS),

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-15 Thread Michael Schnell
The Linux sleep system call provides a microsecond "busy" wait ,but only when used with root privilege . -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CrossFPC

2016-01-24 Thread Michael Ring
What version of Delphi do you use? CrossFPC is compatible to only rather 'old' Versions, the documentation on main page says XE4. I was subscribed to the Mailinglist but have not received a single mail for the last years so propably the mailinglist is dead. Michael Am 24.01.1

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Michael Schnell
On 02/01/2016 09:35 AM, David Butler wrote: Maybe call it "inlineif" or "iif", e..g x := iif (a < 3, 1, 2) It's iif in Oxygen. So why not keep that name ? -Michael ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Michael Schnell
"if ", and the content of an if clause ) returns a value - an expression (such as "1") is accepted as a statement (and hence allowed in a n if clause) This _might_ be viable and doable, as its a pure optional extension. -Michael

Re: [fpc-pascal] if-then-else expression

2016-02-02 Thread Michael Schnell
other keywords. An obvious example is "case". -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ARM CMSIS support

2016-02-12 Thread Michael Ring
Good point, Jeppe, what do you think on compiling rtl on arm-embedded with -O1 ? Michael (Glad to hear that basic functionality works...) By the way, I have done a patch for Lazarus so that debugging with ST-Link/JLink/Texane works, send me an e-mail when you want to test this. Michael Am

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-04 Thread Michael Schnell
t now Lazarus does not seem to compile for me with 3.1.1, so I can't easily check myself.) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-04 Thread Michael Schnell
encodings is a big step forward. Just use the new UTF-8 mode provided by Lazarus and remove all explicit conversion functions. (How) does the new UTF-8 mode in Lazarus change the way TStringList works (as this is what Tobias is concerned about) ? -Michael

Re: [fpc-pascal] Create dynamic SQL according to available params

2016-04-07 Thread Michael Thompson
On 7 April 2016 at 20:00, Luiz Americo Pereira Camara < luizameri...@gmail.com> wrote: > Is there any code that given a SQL Template would generate the second filter when paramy is available and keep blank when not available? Nope, or at least I don't think so. I've spent a long time looking as w

Re: [fpc-pascal] Create dynamic SQL according to available params

2016-04-07 Thread Michael Thompson
On 7 April 2016 at 20:06, Luiz Americo Pereira Camara < luizameri...@gmail.com> wrote: > Any chance sharing the code or at least the syntax? (I realise I'm hijacking your conversation with Michael - apologies for that, but this interests me) My code to initialise the grid (which

Re: [fpc-pascal] Create dynamic SQL according to available params

2016-04-07 Thread Michael Thompson
On 7 April 2016 at 20:20, Graeme Geldenhuys wrote: > On 2016-04-07 13:00, Luiz Americo Pereira Camara wrote: > > If there's not in pascal, someone knows such templating in another > > languages? The hard part is getting a flexible and functional syntax > > I have written such code for the tiOPF p

Re: [fpc-pascal] FPC generated executables and digital signatures

2016-04-08 Thread Michael Thompson
On Fri, 8 Apr 2016 22:02 Graeme Geldenhuys wrote: > On 2016-04-08 14:48, Tony Caduto wrote: > > It only does that if the exe is executed from a location windows deems > > unsafe. > > I just noticed that if I run the executable from a console window (not > Windows Explorer, Total Commander, Double

Re: [fpc-pascal] FPC generated executables and digital signatures

2016-04-08 Thread Michael Thompson
On 8 April 2016 at 22:12, Michael Thompson wrote: > As you've worked out, this isn't an issue with the exe, it's the new > security paradigm. To solve/workaround you need to let your windows know > the network location is secure. From memory, internet option / se

Re: [fpc-pascal] FPC generated executables and digital signatures

2016-04-08 Thread Michael Thompson
On 8 April 2016 at 22:19, Graeme Geldenhuys wrote: > Excellent, that did the trick - thanks! I ticked the "all network paths > (UNCs)" option. I would never have found that option as I don't > consider my local network as part of "Internet Options'. Oh well, that's > just me. No, it's not jus

Re: [fpc-pascal] Lazarus vs MSEgui

2016-04-09 Thread Michael Schnell
that run on (deeply embedded Linux-) systems with no widget set installed at all - Martin provides the "IFI" add-on that allows for remoting the GUI (designed in MSEIDE) of a program via (e.g.) TCP/IP. -Michael ___ fpc-pascal mail

[fpc-pascal] Debug a getter (was Lazarus vs MSEgui)

2016-04-09 Thread Michael Thompson
On 8 April 2016 at 17:08, Santiago A. wrote: > By the way, has anybody managed to debug strings.text or any property > with a getter? > I was hoping someone would answer this. I currently insert the equivalent of sHack := MyStrings.Text; into code, and watch that Means I have to know I w

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-13 Thread Michael Schnell
) (with the Lazarus installation straight from the svn) seemingly always uses UTF8. Is this correct ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-13 Thread Michael Schnell
On 04/13/2016 09:04 AM, Michael Van Canneyt wrote: It uses the DefaultSystemcodepage. If the system codepage is UTF8, then it will use UTF8. Thanks for the enlightenment. Am I right assuming that the DefaultSystemcodepage is determined when compiling the RTL and/or the compiler) ? (As the

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-13 Thread Michael Schnell
On 04/13/2016 09:04 AM, Michael Van Canneyt wrote: It uses the DefaultSystemcodepage. If the system codepage is UTF8, then it will use UTF8. (Sorry for replying yet another answer to the same message of yours) http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus says: On the other

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-14 Thread Michael Schnell
On 04/14/2016 08:52 AM, Michael Van Canneyt wrote: The default encoding for the string type is determined at run-time, not at compile time. How can that work for string constants ? Will they in fact (virtually) change their encoding when DefaultSystemcodepage is different ? For a test I

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-16 Thread Michael Schnell
nstant string I get StringCodePage = 1200 which is UTF16. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-16 Thread Michael Schnell
On 04/15/2016 08:35 AM, Michael Van Canneyt wrote: For string constants there are slightly different rules. There the result depends on the {$codepage} directive of the source file. Hmmm. If not setting $codepage Ifor a constant string I get StringCodePage = 0, If setting {$codepage UTF8

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-18 Thread Michael Schnell
a constant string is assigned to a string that in it's type has a defined codepage (CP_ACP or any other 7 or 8 bit encoding, or CO_UTF16BE)", but not if it's CP_NONE or CP_UTF16). The conversion happens at runtime, so the string codepage is decided at runtime. I'

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-18 Thread Michael Schnell
On 04/16/2016 11:02 AM, Mattias Gaertner wrote: StringCodePage on a literal is pretty useless. You should use StringCodePage on variables. Just exploring how the compiler works... -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-18 Thread Michael Schnell
to convert all your literals to UTF-16 - not using {$codepage utf8} tells the compiler to convert all your literals to UTF-8 The compiler is making fun of me ... :-) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-20 Thread Michael Schnell
On 04/19/2016 08:22 AM, Jonas Maebe wrote: No, it does not. Please tell me which sentence of http://wiki.freepascal.org/FPC_Unicode_support#String_constants suggests that in any way. I just was making fun of myself, naively supposing the contrary :-) ;-) -Michael

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-20 Thread Michael Schnell
, and the possible resource overhead will be extremely rare and minimal). -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-20 Thread Michael Schnell
BTW.: http://www.freepascal.org/docs-html/rtl/system/defaultsystemcodepage.html says that DefaultSystemcodepage can be modified in the user code at runtime. I suppose that will change the way strings with StringCodePage() = CP_ACP are handled. I'll do some tests... -Mi

Re: [fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

2016-04-21 Thread Michael Schnell
phi allows, but this again would be a whole lot of work with maybe limited benefit) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-25 Thread Michael Schnell
. I suppose using FPC and some propriety protocol for linking the DLL and the business logic will be doable. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Iterator for Unicode encoded strings

2016-04-28 Thread Michael Schnell
AFAIR, a member of the German Lazarus Forum implemented an iterator class for UTF8 some years ago (before there was Unicode support in fpc). -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] UnicodeString and surrogate pairs

2016-04-28 Thread Michael Schnell
On 04/27/2016 04:36 PM, Graeme Geldenhuys wrote: Does FPC's RTL (or FCL) include a function to check for UTF-16 surrogate pairs? Would that necessarily be an UTF-8 issue ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] UnicodeString and surrogate pairs

2016-04-29 Thread Michael Schnell
the uncompressed UTF32 information. So the UTF8 vs UTF16 issue is a lower layer of encoding. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Warning not to use the "String" type with FPC 3.x

2016-05-09 Thread Michael Schnell
On 05/09/2016 11:57 AM, Graeme Geldenhuys wrote: the usage of the aliased "String" type should not be used any more with FPC 3.x. You can't seriously suggest to dump all code that ever had been written in Pascal (Delphi Dialect). -Michael

Re: [fpc-pascal] Invoking methods through rtti

2016-05-11 Thread Michael Schnell
no ETA yet. Will this result in a new kind of Pascal Script support ? (In the German Forum there recently had been discussions on Pascal script not working decently on 64 Bit archs.) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] The world is ending

2016-05-11 Thread Michael Schnell
On 05/09/2016 09:34 PM, Jonas Maebe wrote: While still missing in the documentation, you can already do that with {$modeswitch unicodestrings}. If this avoids the issues, Graeme found, why is this not enabled as default, as well in the user code as in the RTL interface ? -Michael

Re: [fpc-pascal] code example where AnsiString used in FCL (SqlDB) causes data loss

2016-05-12 Thread Michael Schnell
On 05/11/2016 04:38 PM, Michael Van Canneyt wrote: Where is the string-type for string-buffers gone? There never was one, this would break in 2.6.4 too. Right. But -> http://wiki.freepascal.org/not_Delphi_compatible_enhancement_for_Unicode_Support -Mich

Re: [fpc-pascal] [Lazarus] FreePascal and Lazarus Foundation

2016-06-27 Thread Michael Ring
It's already on Heise News (german): http://www.heise.de/newsticker/meldung/Stiftung-fuer-Free-Pascal-und-Lazarus-gegruendet-3249526.html Am 27.06.16 um 12:51 schrieb Victor Campillo: On 27/06/16 10:00, Michael Van Canneyt wrote: How did you manage to find this site ? I didn't mak

Re: [fpc-pascal] [Lazarus] FreePascal and Lazarus Foundation

2016-06-27 Thread Michael Ring
Most likely that Embarcadero has shut down their development Branch in Spain, about 80 people involved. Michael Am 27.06.16 um 15:24 schrieb Tony Caduto: What events of the last few days is Boian talking about in his announcement? On Jun 27, 2016 5:51 AM, "Victor Cam

Re: [fpc-pascal] Weird string behavior

2016-07-28 Thread Michael Schnell
On 07/26/2016 04:19 PM, Michael Van Canneyt wrote: This is not correct. In pascal the right-hand side of an assignment has a well-defined type. The compiler checks whether the type on the right is assignment-compatible to the left side. Hmm. if you do x := y + z; with x a real and y and

Re: [fpc-pascal] Weird string behavior

2016-07-29 Thread Michael Schnell
. Analyze and suggestions see -> http://wiki.lazarus.freepascal.org/not_Delphi_compatible_enhancement_for_Unicode_Support -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

<    5   6   7   8   9   10   11   12   13   14   >