Checking function callability in D1 (aka static try-catch)

2008-12-07 Thread Bill Baxter
This topic came up (again) fairly recently, and a solution was proposed, but I found a case where that solution doesn't work. The objective is to do a static check to see if something is callable with particular argument types, and if so call it. The proposed solution was to use '.init' like so:

Re: Checking function callability in D1 (aka static try-catch)

2008-12-07 Thread Christian Kamm
> This topic came up (again) fairly recently, and a solution was > proposed, but I found a case where that solution doesn't work. > > The objective is to do a static check to see if something is callable > with particular argument types, and if so call it. > > The proposed solution was to use '.i

Re: Checking function callability in D1 (aka static try-catch)

2008-12-07 Thread Bill Baxter
On Sun, Dec 7, 2008 at 7:08 PM, Christian Kamm <[EMAIL PROTECTED]> wrote: >> This topic came up (again) fairly recently, and a solution was >> proposed, but I found a case where that solution doesn't work. >> >> The objective is to do a static check to see if something is callable >> with particula