Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Howard Page-Clark
On 18/12/11 5:07, David Emerson wrote: 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the way we can do, e.g., type natural = cardinal, or const GG = 6, but with a function? There's always the

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Tomas Hajny
On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the way we can do, e.g., type natural = cardinal, or const GG = 6, but with

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Jürgen Hestermann
David Emerson schrieb: 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the way we can do, e.g., type natural = cardinal, or const GG = 6, but with a function? I think you can declare a type

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Marcos Douglas
On Sun, Dec 18, 2011 at 9:37 AM, Tomas Hajny xhaj...@hajny.biz wrote: On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the way

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Tomas Hajny
On 18 Dec 11, at 10:31, Marcos Douglas wrote: On Sun, Dec 18, 2011 at 9:37 AM, Tomas Hajny xhaj...@hajny.biz wrote: On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread Marcos Douglas
2011/12/18 Tomas Hajny xhaj...@hajny.biz On 18 Dec 11, at 10:31, Marcos Douglas wrote: On Sun, Dec 18, 2011 at 9:37 AM, Tomas Hajny xhaj...@hajny.biz wrote: On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread David Emerson
Thank you, Tomas, those are all excellent suggestions! I am glad I asked. On Sun 18 Dec 2011, Tomas Hajny wrote: On 17 Dec 11, at 21:07, David Emerson wrote: two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same

Re: [fpc-pascal] alias a function + overload 'in'

2011-12-18 Thread David Emerson
On Sun 18 Dec 2011, Jürgen Hestermann wrote: David Emerson schrieb: 2. is it possible to overload the 'in' operator, so that it may work (using supplied code) on things that are not a pascal set? I do not know whether it is possible but I hate such overloading. An operator defined by

[fpc-pascal] alias a function + overload 'in'

2011-12-17 Thread David Emerson
two little questions 1. Is it possible to make an alias to a function ... so rather than just re-calling with the same parameters, it's actually the same thing? like the way we can do, e.g., type natural = cardinal, or const GG = 6, but with a function? 2. is it possible to overload the 'in'