Re: [fpc-pascal] getting cross with the cross compiler

2017-10-10 Thread Sven Barth via fpc-pascal
is supported. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] alternative name fpc cross

2017-10-10 Thread Sven Barth via fpc-pascal
"-Vxyz" the compiler driver will call -xyz. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 13:28 GMT+07:00 Marco van de Voort : > > Since it is already largely uploaded, no. We are only waiting on some > targets. > I thought such a minor fix that don't break any codes could be included. -- Regards, –Mr Bee _____

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Mr Bee via fpc-pascal
2017-10-10 16:21 GMT+07:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > They were used mainly back at TP times to have procedure local static > variables (cause that is how they behave as inside procedures). > Can we make the {$J-} as default in fpc and objfpc mo

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Sven Barth via fpc-pascal
Am 11.10.2017 07:00 schrieb "Mr Bee via fpc-pascal" < fpc-pascal@lists.freepascal.org>: > > 2017-10-10 16:21 GMT+07:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: >> >> They were used mainly back at TP times to have procedure local static

Re: [fpc-pascal] compiler option for $J directive

2017-10-10 Thread Sven Barth via fpc-pascal
Am 11.10.2017 05:12 schrieb "Mr Bee via fpc-pascal" < fpc-pascal@lists.freepascal.org>: > > 2017-10-10 13:28 GMT+07:00 Marco van de Voort : >> >> >> Since it is already largely uploaded, no. We are only waiting on some >> targets. > > > I th

Re: [fpc-pascal] Resource compilation

2017-10-11 Thread Sven Barth via fpc-pascal
Am 11.10.2017 08:11 schrieb "Martok" : > > Am 25.09.2017 um 14:24 schrieb Sven Barth via fpc-pascal: > > The RC language itself isn't *that* difficult. Main difficulty would be to > > essentially implement a C-preprocessor-compatible preprocessor. > As I

Re: [fpc-pascal] where's the glyph?

2017-10-11 Thread Sven Barth via fpc-pascal
questions are best asked on the lazarus mailing list ( http://lists.lazarus-ide.org/listinfo/lazarus ). While quite some of the devs there read here as well, you'll get even more feedback regarding Lazarus/LCL topics there. Regards, Sven ___ fpc-pascal

Re: [fpc-pascal] Const params question

2017-10-11 Thread Sven Barth via fpc-pascal
erence count in case of an exception Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC attributes / annotations support

2017-10-11 Thread Sven Barth via fpc-pascal
, but it is not yet in trunk. > > Is there a timeline when FPC might support attributes/annotations in trunk? I do hope to look at it soonish(TM), but no real timeline. Hopefully before 3.2.0 :D Regards, Sven _______ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] AbstractError in 3.1.1

2017-10-11 Thread Sven Barth via fpc-pascal
methods with (so that they generate an exception when called). Thus something very strange is going on with your installation :/ Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AbstractError in 3.1.1

2017-10-12 Thread Sven Barth via fpc-pascal
Am 12.10.2017 10:37 schrieb "Ryan Joseph" : > > > > > On Oct 12, 2017, at 12:59 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > > AbstractError() is the name of the function the compiler uses to replace abstract methods wi

Re: [fpc-pascal] AbstractError in 3.1.1

2017-10-12 Thread Sven Barth via fpc-pascal
Wow, okay, that's a nasty one O.o Considering that the "AbstractError" is in the System unit it's safe to assume that the compiler is getting confused there. Would you please open a bug report with this as a full example? But I'm glad that you found the issue... R

[fpc-pascal] CRT unit and Windows' terminal

2017-10-12 Thread Mr Bee via fpc-pascal
the strange behaviour and how to solve the problem? Thank you. -- Regards, –Mr Bee _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-14 Thread Mr Bee via fpc-pascal
tring. -- Regards, –Mr Bee _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-14 Thread Mr Bee via fpc-pascal
p were the client is written in Javascript + HTML and >> the backend in pascal (fpc) >> >> I'd like to use my pascal knowledge of RTL functions, mostly utils >> (FormatFloat, DateToStr etc) in the client app >> >> Do you know any implementation of such functions,

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread Mr Bee via fpc-pascal
starts to look really good. Thank you, Michael. But I think there are some units missing. CMIIW. -- Regards, –Mr Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-15 Thread Mr Bee via fpc-pascal
h unicode on Mac/Linux. -- Regards, –Mr Bee _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread Mr Bee via fpc-pascal
nux. Perhaps because CRT unit both on Mac and Linux had supported unicode since the beginning? CMIIW. -- Regards, –Mr Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Sven Barth via fpc-pascal
Am 16.10.2017 21:36 schrieb "Darius Blaszyk" : > > Here's an interesting one. In C I have this code: > > #define ID1 MAKE_ID('A', 'B') > > Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA. >

Re: [fpc-pascal] Printing types in generics

2017-10-18 Thread Sven Barth via fpc-pascal
avoid "(P)String" in this context as this could lead to different results depending on the modeswitches). For the other string types you need to look at tkAString (AnsiString), tkWString (WideString) and tkUString (UnicodeString). Regards, Sven ____

Re: [fpc-pascal] Printing types in generics

2017-10-19 Thread Sven Barth via fpc-pascal
Am 19.10.2017 08:41 schrieb "Ryan Joseph" : > > > > > On Oct 19, 2017, at 12:58 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > > And your case for tkSString crashes, because that is a ShortString, not a AnsiString thus you n

Re: [fpc-pascal] State of Extended RTTI

2017-10-21 Thread Sven Barth via fpc-pascal
Am 21.10.2017 04:16 schrieb "Nicholas Ring" : > > Hi, > > I am just wondering where eRTTI is at for Free Pascal. I have found this 5 year old thread ( http://fpc-devel.freepascal.narkive.com/4OnA5HH5/state-of-extended-rtti), so I am hoping that it is just around the corner

Re: [fpc-pascal] Plans to support various ISO modes

2017-10-22 Thread Sven Barth via fpc-pascal
Am 22.10.2017 10:51 schrieb "Dominik Rappaport" : Hi, I hope this question is not part of the FAQ list. What are the plans for FPC as to the support of the various ISO modes of Pascal? At the moment, there is a switch to enable "ISO" mode, but it's unclear to me which

Re: [fpc-pascal] Generic compiler error

2017-10-22 Thread Sven Barth via fpc-pascal
Am 23.10.2017 04:14 schrieb "Marcos Douglas B. Santos" : Hi, In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar = TFoo; Type aliases are currently not supported in mode

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 08:29 schrieb "Marco van de Voort" : In our previous episode, Sven Barth via fpc-pascal said: > > Type aliases are currently not supported in mode Delphi. In mode ObjFPC > they might work, but I'm not sure about that either... > > That said I also don

Re: [fpc-pascal] Callbacks as nested functions

2017-10-23 Thread Sven Barth via fpc-pascal
n accesses its outer scope then it definitely won't work. For that you'd need to wait for anonymous function support (which are planned - at least a far as I'm concerned - to also support nested functions). Regards, Sven _______ fpc-pasca

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 12:55 schrieb "Marcos Douglas B. Santos" : On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal wrote: > Am 23.10.2017 08:29 schrieb "Marco van de Voort" : > > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type al

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 14:37 schrieb "Maciej Izak" : 2017-10-23 14:33 GMT+02:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > Don't know. Only time will tell. > Did we have new team member? I would like to meet him! ;) Sadly time isn't around that

Re: [fpc-pascal] InitThread/DoneThread

2017-10-27 Thread Sven Barth via fpc-pascal
eates threads externally, or when you have callbacks from > a DLL which can be called from a thread created by the DLL. I don’t remember because it was years ago. I believe Jonas advised this but it may have been related to Objective Pascal and some bugs that existed back then. The threads I’m c

Re: [fpc-pascal] MINIX 3 support

2017-11-09 Thread Sven Barth via fpc-pascal
t there had been any results). Considering that nowadays I think they use ELF as well it shouldn't be too hard to start a port though (not that I'd be the one to do it :P) Regards, Sven _______ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] WinHTTP.h Translation

2017-11-09 Thread Sven Barth via fpc-pascal
Am 10.11.2017 04:06 schrieb "African Wild Dog" : Hello, Does Free Pascal has any header translations for WinHTTP.h <https://msdn.microsoft.com/en-us/library/windows/desktop/aa382925(v=vs.85).aspx> ? Yes, unit WinHTTP in packages/winunits-base

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-10 Thread Sven Barth via fpc-pascal
building FPC, all the packages are still missing. So you nevertheless need to do a complete build for your host life you had done for your cross compilation target. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
, how will FPC distinguish the two []? The only idea I have is to check whether the first identifier is a attribute and if not handle it as a modifier (or if a comma is following the first identifier). Regards, Sven ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
On 16.11.2017 15:10, Mattias Gaertner wrote: > On Thu, 16 Nov 2017 14:12:18 +0100 > Sven Barth via fpc-pascal wrote: > >> [...] >> So, how will FPC distinguish the two []? >> >> >> The only idea I have is to check whether the first identifier is a >>

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
ier).  One other point to differentiate them: the modifier one always ends with a semicolon after the closing bracket, Delphi's attributes never do that. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
On 16.11.2017 20:25, Maciej Izak wrote: > > > 2017-11-16 20:17 GMT+01:00 Sven Barth via fpc-pascal > mailto:fpc-pascal@lists.freepascal.org>>: > > One other point to differentiate them: the modifier one always ends with > a semicolon after the closing bracket

Re: [fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?

2017-11-28 Thread Sven Barth via fpc-pascal
Am 28.11.2017 20:04 schrieb "Роман via fpc-pascal" < fpc-pascal@lists.freepascal.org>: 'Initialization' sections are executed in poorly predictable order, so I want to partially order them according to some form of explicit prioritization and execute before control fl

Re: [fpc-pascal] How is EntryInformation.OS.haltproc assigned?

2017-12-04 Thread Sven Barth via fpc-pascal
> The only place under rtl/linux I find haltproc assigned is in > "si_dll.inc". There procedure _FPC_shared_lib_haltproc deals with > shared libraries. Not relevant here. haltproc is assigned in the RTL's Linux startup files. Depending on whether the specific platform uses

Re: [fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-12 Thread Sven Barth via fpc-pascal
is a 64-bit library? Maybe you should take a look at fpSpreadsheet which allows you to work with Excel files of different versions directly and does not need a library. Regards, Sven ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

Re: [fpc-pascal] Overloading IN operator

2017-12-12 Thread Sven Barth via fpc-pascal
is only changed in trunk a few months ago so that the operator can be used as an array constructor as well. So for now you'd need to use an array variable on the right side. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-13 Thread Sven Barth via fpc-pascal
Am 13.12.2017 11:39 schrieb "Dennis Poon" : Sven Barth via fpc-pascal wrote: Am 13.12.2017 03:04 schrieb "Dennis" de...@avidsoft.com.hk>>: > > I am converting my windows 32 program to 64 bit. > It compiled with lazarus without any problem.(fpc 3.

Re: [fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-13 Thread Sven Barth via fpc-pascal
Am 13.12.2017 18:13 schrieb "Dennis" : Sven Barth via fpc-pascal wrote: > Am 13.12.2017 11:39 schrieb "Dennis Poon" den...@avidsoft.com.hk>>: > > > > Just for clarification: is the excel_xp.dll written by you or by a 3rd > party? Or are you talk

Re: [fpc-pascal] First pas2js public release

2017-12-17 Thread Sven Barth via fpc-pascal
e other hand a transpiler and does not - as Michael explained - support native features like pointers. Also if you look at the generated code you can still understand it without much effort. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] Cannot find entry point of a routine inside a windows 64 dll

2017-12-17 Thread Sven Barth via fpc-pascal
ywalker.com/ ). Just open the executable while the library is located in the same directory and you can see which routines mismatch. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-31 Thread Sven Barth via fpc-pascal
84_64 and ARM as well as the obsolete MIPS and PowerPC targets). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Possible Memory Leak in TThread.Synchronize

2018-01-03 Thread Sven Barth via fpc-pascal
but nevertheless as explanation: this code is only reached by asynchronously added events (TThread.Queue()) and there no event is needed, this none is freed or even allocated. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] Translate C code

2018-01-06 Thread Sven Barth via fpc-pascal
is its offset in the record. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] String message methods and the self parameter

2018-01-06 Thread Sven Barth via fpc-pascal
4. Can somebody give an example on how to use this functionality? Judging from the implementation inside the RTL I'd say that this is a bug in the documentation. String message methods work like ordinal ones and take only one parameter. Regards, Sven _______

Re: [fpc-pascal] Final Methods support

2018-01-06 Thread Sven Barth via fpc-pascal
Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] First pas2js public release

2018-01-07 Thread Sven Barth via fpc-pascal
the snake's movement based on the global coordinate system instead of only left and right from the local coordinate system on the snake. So I was quite confused at first as I used "Up", but the snake didn't move there... ^^' Regards, Sven ______

Re: [fpc-pascal] Generics vs templates

2018-01-08 Thread Sven Barth via fpc-pascal
ever. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generics vs templates

2018-01-08 Thread Sven Barth via fpc-pascal
Am 08.01.2018 12:52 schrieb "Ryan Joseph" : > On Jan 8, 2018, at 5:58 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > FPC essentially reparses a generic during specialization so I'd say that they definitely affect compile times. Doe

Re: [fpc-pascal] Generics vs templates

2018-01-08 Thread Sven Barth via fpc-pascal
t you need to program in a way that allows the usage of multiple, different types. That can more often than not lead to worse performance. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generics vs templates

2018-01-09 Thread Sven Barth via fpc-pascal
Am 09.01.2018 08:13 schrieb "Ryan Joseph" : > On Jan 9, 2018, at 2:04 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > But you need to program in a way that allows the usage of multiple, different types. That can more often than not

Re: [fpc-pascal] Generics vs templates

2018-01-09 Thread Sven Barth via fpc-pascal
Am 10.01.2018 07:39 schrieb "Marco van de Voort" : In our previous episode, Sven Barth via fpc-pascal said: > Precisely these virtual methods are one point. They might not add much by > themselves, but if they're called for each Add or Remove operation they can > add q

Re: [fpc-pascal] Generics vs templates

2018-01-09 Thread Sven Barth via fpc-pascal
s used. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generics vs templates

2018-01-11 Thread Sven Barth via fpc-pascal
Am 11.01.2018 08:06 schrieb "Michael Schnell" : On 09.01.2018 08:04, Sven Barth via fpc-pascal wrote: But you need to program in a way that allows the usage of multiple, different types. That can more often than not lead to worse performance. Seemingly it is done that way. I rather o

Re: [fpc-pascal] PAS2JS: operations with array of record

2018-01-11 Thread Sven Barth via fpc-pascal
Am 11.01.2018 08:16 schrieb "warleyalex via fpc-pascal" < fpc-pascal@lists.freepascal.org>: Anyway, what I couldn't find is the built-in kind of *pseudo-methods for the record data type*, set of operations, for inserting, removing, sorting and otherwise manipulate the

Re: [fpc-pascal] PAS2JS: operations with array of record

2018-01-11 Thread Sven Barth via fpc-pascal
Am 11.01.2018 13:33 schrieb "Mattias Gaertner" : On Wed, 10 Jan 2018 11:40:48 -0700 (MST) warleyalex via fpc-pascal wrote: >[...] > · Add(item [,...]) / Push(item [,...]) : increases Length by one and adds one or more item at the end of the array, can also add array

Re: [fpc-pascal] Compiler hangs while generating debug information

2018-01-11 Thread Sven Barth via fpc-pascal
Am 11.01.2018 18:47 schrieb "Nitorami" : Any opinions ? You can try to minimize your source by removing parts to see what might cause the problem. Alternatively you can debug the compiler in Lazarus. Regards, Sven ___ fpc-pascal mailli

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
fsu4.html#x26-280003.1.1). Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
d b) that it needs a directive to be enabled. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dot syntax for types?

2018-01-14 Thread Sven Barth via fpc-pascal
On 14.01.2018 16:19, Michael Van Canneyt wrote: > > > On Sun, 14 Jan 2018, Sven Barth via fpc-pascal wrote: > >> On 14.01.2018 09:56, Michael Van Canneyt wrote: >>> >>> >>> On Sun, 14 Jan 2018, Ryan Joseph wrote: >>> >>>>

Re: [fpc-pascal] AppImage

2018-01-15 Thread Sven Barth via fpc-pascal
out that an app contains that library). So, yeah, I'm definitely skeptical about such approaches. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AppImage

2018-01-16 Thread Sven Barth via fpc-pascal
Am 16.01.2018 20:41 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: On 2018-01-16 06:51, Sven Barth via fpc-pascal wrote: > So, yeah, I'm definitely skeptical about such approaches. > All valid points. But if it was such a big concern, then why was Apple

Re: [fpc-pascal] AppImage

2018-01-16 Thread Sven Barth via fpc-pascal
Am 16.01.2018 22:58 schrieb "Rainer Stratmann" : Am Dienstag, 16. Januar 2018, 22:41:34 schrieb Sven Barth via fpc-pascal: > This won't work in the more diverse > Linux world where users are more free to decide. But if you take a closer look at this (diverse) that is some ki

Re: [fpc-pascal] directive for -CR

2018-01-18 Thread Sven Barth via fpc-pascal
ogsu57.html#x64-630001.2.57 Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] fcl-web on Microsoft's kernel mode HTTP(S) server

2018-01-19 Thread Sven Barth via fpc-pascal
I'd now ask those users of fcl-web that have access to Windows to test their web applications with this backend so that bugs can be found and fixed. Thank you. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

Re: [fpc-pascal] Dynamic Packages

2018-01-22 Thread Sven Barth via fpc-pascal
e still missing. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Range checks

2018-01-27 Thread Sven Barth via fpc-pascal
it. *Of course* there is a range check error then. You need to use e.g. SizeInt as counter variable type in those cases (SizeInt is 32-bit on 32-bit systems and 64-bit on 64-bit systems). Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] _Release call location for unused function results

2018-01-30 Thread Sven Barth via fpc-pascal
mber from some time back that someone (maybe even Jonas) presented an example where Delphi does in fact behave different. I'd need to find that again however. :/ Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] question about _fpc_local_unwind

2018-02-02 Thread Sven Barth via fpc-pascal
. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] question about _fpc_local_unwind

2018-02-02 Thread Sven Barth via fpc-pascal
Am 02.02.2018 18:12 schrieb "Matias Vara" : Hello, 2018-02-02 17:17 GMT+01:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > Am 02.02.2018 15 <02%2002%2020%2018%2015>:50 schrieb "Matias Vara" < > matiasev...@gmail.com>: > >

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-02 Thread Sven Barth via fpc-pascal
ards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Sven Barth via fpc-pascal
r and TWriter together form the streaming system. Correct. Stupid autocorrection -.- Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Sven Barth via fpc-pascal
Am 03.02.2018 10:08 schrieb "Michael Van Canneyt" : On Sat, 3 Feb 2018, Sven Barth via fpc-pascal wrote: Am 03.02.2018 09:11 schrieb "Michael Van Canneyt" : > > > > On Sat, 3 Feb 2018, Dennis Poon wrote: > > > >>> If your objects inherit from T

Re: [fpc-pascal] Operator overload resolution with arrays

2018-02-05 Thread Sven Barth via fpc-pascal
onsistent. While I do plan to test what happens if I allow units that were not part of the generic's scope during its declaration that has the potential to open a whole new can of bugs. Regards, Sven _______ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Operator overload resolution with arrays

2018-02-05 Thread Sven Barth via fpc-pascal
ted to generics types and I want to > try to fix part of them before I decide to update rtl-generics. > Would be good if you'd report them on Mantis nevertheless, cause generics are a bit of a sensitive area and I'd like to keep an overview there. Regards, Sven _____

Re: [fpc-pascal] Operator overload resolution with arrays

2018-02-05 Thread Sven Barth via fpc-pascal
"implementation restriction" from the manual - and only that. I think? That *could* be a possibility. I'd need to think about it a bit though to be sure that there are no caveats. Regards, Sven ___________ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Scoped enums and inferred types

2018-02-20 Thread Sven Barth via fpc-pascal
e with the same name into the mix). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Scoped enums and inferred types

2018-02-21 Thread Sven Barth via fpc-pascal
s and then typing them back out in function calls. I simply rely on my IDE (Lazarus, Visual Studio) to complete long identifier names for me so that I don't have to. *shrugs* Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] procedure and function parameters?

2018-03-04 Thread Sven Barth via fpc-pascal
On 04.03.2018 18:06, Bernd Oppolzer wrote: > Are procedure and function parameters allowed in Free Pascal? > > When I tried to compile the Man-or-boy example program (Knuth's test), > FPC complained with a syntax error: > > > c:\work\pascal\work>fpc manorboy.pas &

Re: [fpc-pascal] Managed record questions

2018-03-07 Thread Sven Barth via fpc-pascal
uses. No, this doesn't beg the question, because Object Pascal classes are designed in the principle to reduce on the heap. Changing this would not only mean quite some changes in the compiler/RTL with no real gain, but it would also change a core aspect of the Object Pascal language.

Re: [fpc-pascal] Managed record questions

2018-03-08 Thread Sven Barth via fpc-pascal
Am 08.03.2018 08:33 schrieb "Maciej Izak" : No, this doesn't beg the question, because Object Pascal classes are > designed in the principle to reduce on the heap. Changing this would not > only mean quite some changes in the compiler/RTL with no real gain, but it >

Re: [fpc-pascal] Managed record questions

2018-03-08 Thread Sven Barth via fpc-pascal
inally for this. The finally-block is always executed when the try-block is left no matter if it's by reaching the end, calling exit or by an exception. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] Managed record questions

2018-03-08 Thread Sven Barth via fpc-pascal
Am 08.03.2018 12:51 schrieb "Ryan Joseph" : > On Mar 8, 2018, at 5:42 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > You are supposed to use try...finally for this. The finally-block is always executed when the try-block is left no matter if

Re: [fpc-pascal] Managed record questions

2018-03-08 Thread Sven Barth via fpc-pascal
port for helpers could be easily added. Only major feature missing compared to classes is the support for extensive RTTI. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Managed record questions

2018-03-09 Thread Sven Barth via fpc-pascal
t’s a real shame to because the time could have been spent making objects more unified with classes. Objects share roughly as much code with records as classes do as internally classes and objects share most of their code. Regards, Sven _______ fp

Re: [fpc-pascal] Managed record questions

2018-03-09 Thread Sven Barth via fpc-pascal
Am 09.03.2018 16:41 schrieb "Ryan Joseph" : > On Mar 9, 2018, at 4:51 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > Objects share roughly as much code with records as classes do as internally classes and objects share most of their code

[fpc-pascal] Proposal for new Free Pascal logo

2018-03-29 Thread Mr Bee via fpc-pascal
istinguish them from other programming communities. I've seen it with many other communities, such as Swift, Python, Kotlin, etc. Unfortunately, I don't see Pascal language –especially Free Pascal– to have a such logo. Yes, I know the FPC's official site got a running cheetah (

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-31 Thread Mr Bee via fpc-pascal
2018-03-30 15:21 GMT+07:00 Michael Van Canneyt : > > I would get rid of the whiskers. > > What's wrong with the whiskers? 😄 -- Regards, –Mr Bee _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-31 Thread Mr Bee via fpc-pascal
But the head is more compact, which speaks in its favor. > Thank you. > I am not sure how bit the *need* is but it doesn't hurt to have an > official still image logo. If we want the young generation to know Pascal with a new paradigm, a modern programming language paradigm, I think

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-01 Thread Mr Bee via fpc-pascal
ns-keep >> -falling-scientists-demand-better-protection#stream/0 >> Just my 50 cents. >> > > And as you can see, the whiskers are barely visible, and not black... > > Michael. > ___ > fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-02 Thread Mr Bee via fpc-pascal
e it looks like a cat, because cheetah is a cat. > FPC is an open-source project dating back to the days the word "open > source" did not exist. So maturity is important. > How do we put "maturity" onto a cheetah's face? Cheetah is known as the fastest animal on la

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-02 Thread Sven Barth via fpc-pascal
eting/branding talk:Given that I think your version looks like > > a kitten, you will understand that for the reasons explained above, I > > would not want to be "associated" with the logo as you proposed it now. > > More to the point, why is a Cheetah logo being dis

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread Mr Bee via fpc-pascal
d, branding is not a subject I am particularly > fond of or interested in. I am more interested in the contents of the box > than in the packaging... Well… if we want Pascal to be known again –as modern programming language, not the old 70's Pascal– then branding is quite important. Espe

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-05 Thread Mr Bee via fpc-pascal
rybody knows apple is a fruit, yet everybody knows a bitten Apple fruit logo represents a company that produces computers and smartphones with no apple fruits involved whatsoever. -- Regards, –Mr Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using constants instead of comments

2018-04-17 Thread Sven Barth via fpc-pascal
or if > not, is there a better way to optionally exclude diagnostic information > entirely from the compiled program? > It should be excluded. You can confirm this by checking the assembler output generated with "-al". Regards, Sven > _

Re: [fpc-pascal] Multiple active class helpers at same time

2018-04-23 Thread Sven Barth via fpc-pascal
> Yes, it is planned. Main problem currently (aside from time) is to define when a method hides the method of another helper, especially when inheritance (both for the helper and the extended type) is involved. Regards, Sven ___ fpc-pascal

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