Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Marco van de Voort
In our previous episode, Zo? Peterson said: > The recommended FPC approach, on the other hand, is a combination of > "Use functions from the RTL, BaseUnix, or other random packages" and > "Import the relevant functions yourself", and the documentation is "Hope > some exists or that adding an

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > That said, if someone steps up and offers to update Libc for all supported > architectures, she/he is welcome. But be warned that this will not be easy. > The structures depend highly on the CPU. Delphi supports only 2 CPUs (64-bit > and

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-23 Thread James Richters
Thanks for the response, it got me on the right track and I got it working. I originally did try “ instead of ‘ and have the same results. I was using ‘ because of the example here: http://wiki.freepascal.org/CopyFile I was able to get it to work without any ‘ or “ I even did a test

Re: [fpc-pascal] TypeInfo question

2017-03-23 Thread Ryan Joseph
> On Mar 23, 2017, at 11:16 PM, Sven Barth via fpc-pascal > wrote: > > TypeInfo() simply inserts the load of a pointer value, so there's not even a > call. > > Great, that’s what I was hoping. Thanks. Regards, Ryan Joseph

Re: [fpc-pascal] TypeInfo question

2017-03-23 Thread Ryan Joseph
I think I already learned this and I forget when I had the idea about TypeInfo. :) This is basically the pattern I’m attempting. I have a generic class and I thought I could avoid specializing and making a subclass so that I could call a method if the type of the generic was a class. So what

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Florian Klämpfl
Am 23.03.2017 um 16:47 schrieb Mattias Gaertner: > On Thu, 23 Mar 2017 16:08:20 +0100 (CET) > Michael Van Canneyt wrote: > >> [...] >>> When did FPC start to run on Linux? 1999? >> >> I got the first "hello world" around 1995-1996, I think, >> together with Mark May.

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Sven Barth via fpc-pascal
On 23.03.2017 18:35, Florian Klämpfl wrote: > Am 23.03.2017 um 16:47 schrieb Mattias Gaertner: >> On Thu, 23 Mar 2017 16:08:20 +0100 (CET) >> Michael Van Canneyt wrote: >> >>> [...] When did FPC start to run on Linux? 1999? >>> >>> I got the first "hello world"

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Florian Klämpfl
Am 23.03.2017 um 19:11 schrieb Sven Barth via fpc-pascal: > On 23.03.2017 18:35, Florian Klämpfl wrote: >> Am 23.03.2017 um 16:47 schrieb Mattias Gaertner: >>> On Thu, 23 Mar 2017 16:08:20 +0100 (CET) >>> Michael Van Canneyt wrote: >>> [...] > When did FPC start

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-23 Thread Sandro Cumerlato
On 23 Mar 2017 11:34, "James Richters" wrote: Thanks for the response, it got me on the right track and I got it working. Happy to help you! I originally did try “ instead of ‘ and have the same results. I was using ‘ because of the example here:

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 23 Mar 2017, Graeme Geldenhuys wrote: > Just thought I would mention, yesterday Delphi 10.2 was released which > includes Linux support (I assume a cross-compiler). It is only available > in the Enterprise edition product line though, and only Linux Server > style apps are supported

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Graeme Geldenhuys
On 2017-03-23 12:15, Karoly Balogh (Charlie/SGR) wrote: > I can't wait until we get the blame that Free Pascal on Linux is now > incompatible with Delphi on Linux... That crossed my mind too. God(*) help us all! * - place with whatever name suites you. Regards, Graeme

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-23 Thread Sandro Cumerlato
No. The "" is a shell/cmdline convention, and API calls are generally not shell. Thank you Marco for the clarification. Sandro Cumerlato ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Giuliano Colla
Il 23/03/2017 17:19, Sven Barth via fpc-pascal ha scritto: In the end you'll just need the correct units to do GUI applications as well though one would need to do everything by hand as there'd be no VCL or FM :P IOW with the newest Delphi for Linux you're in a worse condition than using old

[fpc-pascal] TypeInfo question

2017-03-23 Thread Ryan Joseph
I have some generics which operate on multiple types and instead of making subclasses for certain types and overriding methods I wonder if using the RTTI like: PTypeInfo(TypeInfo(T))^.kind = tkClass would be a good idea. How is TypeInfo() implemented exactly? I’m curious if there are any

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-23 Thread Marco van de Voort
In our previous episode, Sandro Cumerlato said: > ' delimiters are mandatory within this example because we are writing paths > as string parameters directly into the source code. > > I believe that I should use both ' and " in case of spaces within paths: > > CopyFile('"c:\my silly

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > > in the Enterprise edition product line though, and only Linux Server > > > style apps are supported (no GUI/desktop apps). > > > > I can't wait until we get the blame that Free Pascal on Linux is now > > incompatible with Delphi on Linux...

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Marco van de Voort
In our previous episode, Karoly Balogh (Charlie/SGR) said: > > Well, there was Kylix anyway around 2001 or so, wasn't it? So not like > supporting Linux is a rocket science, although FPC was definitely first. > > My remark was more about, I still remember, Kylix had his own LibC unit, > but

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Michael Van Canneyt
On Thu, 23 Mar 2017, Mattias Gaertner wrote: On Thu, 23 Mar 2017 13:15:20 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: Hi, On Thu, 23 Mar 2017, Graeme Geldenhuys wrote: > Just thought I would mention, yesterday Delphi 10.2 was released which > includes Linux

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Mattias Gaertner
On Thu, 23 Mar 2017 13:15:20 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: > Hi, > > On Thu, 23 Mar 2017, Graeme Geldenhuys wrote: > > > Just thought I would mention, yesterday Delphi 10.2 was released which > > includes Linux support (I assume a cross-compiler).

[fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Graeme Geldenhuys
Hi, Just thought I would mention, yesterday Delphi 10.2 was released which includes Linux support (I assume a cross-compiler). It is only available in the Enterprise edition product line though, and only Linux Server style apps are supported (no GUI/desktop apps). Just my 2c worth ;-) Regards,

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Michael Ring
At least not from me, I felt already ripped off by Embarcadero by not delivering on their promise to bring Linux last summer (Fortunately I did not renew my Pro-Subscription). Seeing that they wanted to do a 2nd rip off by only giving it to Enterprise customers reassured me that that decision

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Mattias Gaertner
On Thu, 23 Mar 2017 16:08:20 +0100 (CET) Michael Van Canneyt wrote: >[...] > > When did FPC start to run on Linux? 1999? > > I got the first "hello world" around 1995-1996, I think, > together with Mark May. (if memory serves well) Well, Delphi didn't start with a

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 23 Mar 2017, Mattias Gaertner wrote: > > > When did FPC start to run on Linux? 1999? > > > > I got the first "hello world" around 1995-1996, I think, > > together with Mark May. (if memory serves well) > > Well, Delphi didn't start with a "Hello World". So that would be a > little

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Michael Van Canneyt
On Thu, 23 Mar 2017, Mattias Gaertner wrote: On Thu, 23 Mar 2017 16:08:20 +0100 (CET) Michael Van Canneyt wrote: [...] > When did FPC start to run on Linux? 1999? I got the first "hello world" around 1995-1996, I think, together with Mark May. (if memory serves

Re: [fpc-pascal] TypeInfo question

2017-03-23 Thread Sven Barth via fpc-pascal
Am 23.03.2017 16:29 schrieb "Ryan Joseph" : > > I have some generics which operate on multiple types and instead of making subclasses for certain types and overriding methods I wonder if using the RTTI like: > > PTypeInfo(TypeInfo(T))^.kind = tkClass > > would be a good

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Sven Barth via fpc-pascal
Am 23.03.2017 13:05 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > Hi, > > Just thought I would mention, yesterday Delphi 10.2 was released which > includes Linux support (I assume a cross-compiler). It is only available > in the Enterprise edition product line though, and only

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Graeme Geldenhuys
On 2017-03-23 16:19, Sven Barth via fpc-pascal wrote: > In the end you'll just need the correct units to do GUI applications Yeah, but I don't see Embarcadero going down that route any time soon [years if at all]. They already can't handle the amount of bug reports, plus no native IDE for

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Michael Van Canneyt
On Thu, 23 Mar 2017, Zoë Peterson wrote: On 3/23/2017 12:31 PM, Marco van de Voort wrote: It didn't help that some component maintainers like Synapse stuck to the libc format way too long. Only in 2007-2009 when FPC on OS X got important that changed, I still use Indy(10) that switched much

Re: [fpc-pascal] Delphi for Linux is out

2017-03-23 Thread Zoë Peterson
On 3/23/2017 12:31 PM, Marco van de Voort wrote: It didn't help that some component maintainers like Synapse stuck to the libc format way too long. Only in 2007-2009 when FPC on OS X got important that changed, I still use Indy(10) that switched much earlier to this day. Having just removed