[fpc-pascal] Drawing window out line

2014-05-22 Thread mokashe.ram
Hi , Could Any One help Me to writing Horizontal and vertical line to message window in Free Pascal as i MEM and MEMW function not supported in free pascal. note : we can not use Video and CRT Unit both in single unit. i want to use CRT unit only. below is the my sample code PROCEDURE

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Michael Schnell
On 05/21/2014 05:52 PM, Craig Peterson wrote: I think it's useful for encapsulating asynchronous callbacks and improving readability by keeping the callback code near the setup location and removing data marshalling scaffolding. For complex asynchronous events, I tested this: - Define a

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Mark Morgan Lloyd
mokashe.ram wrote: Hi , Could Any One help Me to writing Horizontal and vertical line to message window in Free Pascal as i MEM and MEMW function not supported in free pascal. note : we can not use Video and CRT Unit both in single unit. i want to use CRT unit only. below is the my sample

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 09:00, mokashe.ram wrote: Hi, Could Any One help Me to writing Horizontal and vertical line to message window in Free Pascal as i MEM and MEMW function not supported in free pascal. note : we can not use Video and CRT Unit both in single unit. i want to use CRT

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 09:55, Mark Morgan Lloyd wrote: mokashe.ram wrote: . . it's probably safe to assume that your instructor is reading this mailing list with interest, perhaps he'd like to fill in what operating system etc. your code's supposed to run on since you've not told us :-) In

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Thu, May 22, 2014 09:55, Mark Morgan Lloyd wrote: mokashe.ram wrote: . . it's probably safe to assume that your instructor is reading this mailing list with interest, perhaps he'd like to fill in what operating system etc. your code's supposed to run on since you've

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Sven Barth
Am 22.05.2014 09:44 schrieb ko paka kopa...@gmail.com: Hello, just out of curiosity - by packages do you mean delphi style dynamic packages - bpl ? Yes. Though first step is compile time packages and runtime packages later... Regards, Sven ___

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Marco van de Voort
In our previous episode, Michael Schnell said: - To through the callback event, create an instance and fill the data structure in the instance and then use TThread.Queue to through the event: procedure TmyThread.Execute begin ... AsyncEvent := TAsyncEvent.create;

Re: [fpc-pascal] Ping problems - OS/X

2014-05-22 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: I did note that the example said that it was flawed, but, foolishly, as it turned out, I thought it meant 'flawed' rather than 'doesn't work at all'. Do you mean this example:

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Michael Schnell
On 05/22/2014 11:33 AM, Marco van de Voort wrote: I do something similar, but pool these event records in generic pools, Great ! Could we have this in the RTL ? Is it viable to create closure as a syntax candy on top of this ? -Michael ___

Re: [fpc-pascal] Drawing window out line

2014-05-22 Thread Tomas Hajny
On Thu, May 22, 2014 10:51, Mark Morgan Lloyd wrote: . . Going back to the earlier message: note : we can not use Video and CRT Unit both in single unit. i want to use CRT unit only. Perhaps somebody would like to confirm this, but my understanding is that Video and CRT can't be used

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Maciej Izak
2014-05-22 11:18 GMT+02:00 Sven Barth pascaldra...@googlemail.com: Yes. Though first step is compile time packages and runtime packages later... Any timeline? Regards, hnb ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Craig Peterson
On 5/21/2014 3:53 PM, Sven Barth wrote: While I consider bounties a valuable instrument for Open Source development I personally don't like them. Especially in the way you are mentioning it (no offence here!) it would put quite some pressure on me which I'm honestly not a fan of. No offense

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Craig Peterson
On 5/22/2014 2:35 AM, Michael Schnell wrote: For complex asynchronous events, I tested this: - Define a class (sibling of TObject) ) that holds some data and the procedure to be used in the asynchronous callback. - To through the callback event, create an instance and fill the data