Re: [fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Graeme Geldenhuys
On 2018-05-21 12:49, Leonardo M. Ramé via fpc-pascal wrote: > BTW, can fpReport print to a Printer? all the examples "exports" to > PDF and other formats, but none of them is sending directly the > report to a printer. Printing was not in the original design spec of fpReport - but that doesn't mea

Re: [fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Michael Van Canneyt
On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote: On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote: Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but it seems that it's an imposs

Re: [fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Leonardo M . Ramé via fpc-pascal
On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote: > Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses > TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but > it seems that it's an impossible task, because Printer.Canvas requieres a > TBitmap whic

Re: [fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Michael Van Canneyt
On Mon, 21 May 2018, Leonardo M. Ramé via fpc-pascal wrote: Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but it seems that it's an impossible task, because Printer.Canvas requieres a TBitmap which in

[fpc-pascal] Printing TFPImage to TCairoPSCanvas

2018-05-21 Thread Leonardo M . Ramé via fpc-pascal
Hi, I need to print an TFPMemoryimage into Printer.Canvas (which uses TCairoPSCanvas to printing to CUPS) from a Linux CGI (no widgetset), but it seems that it's an impossible task, because Printer.Canvas requieres a TBitmap which in turn requires a widgetset. Can anyone help me with this?. BT

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-05-21 Thread Maciej Izak
2018-05-21 10:12 GMT+02:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > > That is at least what I would *expect* for Delphi as well. And no, I'm > definitely not underestimating their ability to come up with strange > syntaxes... Do I do prefer not to think about it too much to a

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-05-21 Thread Maciej Izak
2018-05-21 10:49 GMT+02:00 Jonas Maebe : > Breaking backwards compatibility is one of the the worst things you can do > in a programming language/compiler, and the primary concern when making > changes to a language should always be to avoid this (except when you're > developing a new language tha

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-05-21 Thread Jonas Maebe
On 21/05/18 01:36, Maciej Izak wrote: IMO potentially breaking compatibility is better than lock/prohibition for missing features in Delphi (or waiting for Delphi implementation). Breaking backwards compatibility is one of the the worst things you can do in a programming language/compiler, and

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-05-21 Thread Mark Morgan Lloyd
On 20/05/18 12:30, Sven Barth via fpc-pascal wrote: ## "+" operator The compiler now implements a "+" operator for arrays which is the same as if Concat() would be called on the arrays. Note regarding backwards compatibility: existing "+" operator overloads for dynamic arrays no longer compile

Re: [fpc-pascal] Dynamic Array, operator +

2018-05-21 Thread Sven Barth via fpc-pascal
Am 20.05.2018 um 18:39 schrieb Mathias: Mixing dynamic and static array does not work properly yet. The "+" operator is currently not supposed to work for static arrays. Please report as a feature request. var   a, b, c: array of byte;   d: array[0..2] of byte = (6, 7, 8); begin [snip]

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-05-21 Thread Sven Barth via fpc-pascal
Am 21.05.2018 um 01:36 schrieb Maciej Izak: 2018-05-21 0:52 GMT+02:00 Sven Barth via fpc-pascal >: The thing is that I can easily imagine the Delphi devs to be so stoned to use the "[...]" for static arrays inside dynamic arrays as well which