[fpc-pascal] Call for testing: array constructors

2017-05-04 Thread Sven Barth via fpc-pascal
Hello together! Since revision 36105 FPC now supports the use of array constructors using the "[...]" syntax inside ordinary code blocks like Delphi does since - I think - XE8. And yes, even nested ones are supported (take a look at $fpcdir/tests/test/tarrconstr5.pp for a bit of inspiration).

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Mark Morgan Lloyd
On 04/05/17 11:30, Mark Morgan Lloyd wrote: Is anybody currently using Freevision dialog(ue)s? I've got some very odd problems transferring initial values onto the screen and getting stuff back, at least some of which appears to be platform-specific (comparing x86_64, i386 and arm, all Linux).

[fpc-pascal] importtl and ignored [out, retval] parameters

2017-05-04 Thread Lubos Pintes
Hello, I wanted to import the UIAutomationClient type library. Thus I compiled the UIAutomationClient.idl to .tlb and then used importtl to convert it to pascal. Importtl converted this incorrectly, it ignored [out, retval] parameters on many places. For example, two examples from

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Graeme Geldenhuys
On 2017-05-04 13:52, Michael Van Canneyt wrote: > All this fails if the needed libraries are not available You are indeed correct of course. Below is the output as seen on a server that has no X11 related libraries installed. $./osmail -h Shared object

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Michael Van Canneyt
On Thu, 4 May 2017, Graeme Geldenhuys wrote: On 2017-05-04 13:21, Mark Morgan Lloyd wrote: text-mode console or over something really crude like telnet... and I hope you're doing that for fpGUI since you keep telling us how good it is :-) As I said, I do that often in my own (and

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Graeme Geldenhuys
On 2017-05-04 13:21, Mark Morgan Lloyd wrote: > text-mode console or over something really crude like telnet... and I > hope you're doing that for fpGUI since you keep telling us how good it > is :-) As I said, I do that often in my own (and commercial) applications that use fpGUI. The fpGUI

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Mark Morgan Lloyd
On 04/05/17 12:00, Graeme Geldenhuys wrote: On 2017-05-04 12:03, Mark Morgan Lloyd wrote:>> I've not used Freevision/Turbovision before, but am experimenting with>> James Clarke's DialEdit as an experiment to see whether I can create a>> fallback user interface for use if an interactive

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Graeme Geldenhuys
On 2017-05-04 12:03, Mark Morgan Lloyd wrote: >> I've not used Freevision/Turbovision before, but am experimenting with >> James Clarke's DialEdit as an experiment to see whether I can create a >> fallback user interface for use if an interactive program is running in >> a shell session. The

Re: [fpc-pascal] Freevision etc.

2017-05-04 Thread Mark Morgan Lloyd
On 13/04/17 10:00, Mark Morgan Lloyd wrote: I've not used Freevision/Turbovision before, but am experimenting with James Clarke's DialEdit as an experiment to see whether I can create a fallback user interface for use if an interactive program is running in a shell session. The Lazarus side of

Re: [fpc-pascal] Record operator for assignment

2017-05-04 Thread Ryan Joseph
> On May 4, 2017, at 4:27 PM, Marco van de Voort wrote: > > Scripting languages often already by default initialize a datatructure, and > then such language constructs only performs additional initialization. > > Pascal and similar lowlevel languages don't by default

Re: [fpc-pascal] Record operator for assignment

2017-05-04 Thread Sven Barth via fpc-pascal
Am 04.05.2017 10:37 schrieb "Ryan Joseph" : > > > > On Apr 28, 2017, at 3:51 PM, Ryan Joseph wrote: > > > > I almost struck out there. ;) There’s at least a possibility for anyone interested. A few years ago I looked at the compiler source

Re: [fpc-pascal] Record operator for assignment

2017-05-04 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > All structures have an automatically-generated memberwise initializer, which > you can use to initialize the member properties of new structure instances. > Initial values for the properties of the new instance can be passed to the > memberwise

Re: [fpc-pascal] Record operator for assignment

2017-05-04 Thread Ryan Joseph
> On Apr 28, 2017, at 3:51 PM, Ryan Joseph wrote: > > I almost struck out there. ;) There’s at least a possibility for anyone > interested. A few years ago I looked at the compiler source and decided it > was beyond me to even understand the code base well enough