Inconsistency with function pointers
Russel Winder
russel at winder.org.uk
Sat Aug 4 22:57:07 PDT 2012
On Sat, 2012-08-04 at 21:03 +0200, David Nadlinger wrote:
[…]
> You are trying to pass a delegate which returns a delegate –
> this isn't going to work. ;)
But that is my whole point, it does a lot of the time, and it depends on
whether you are working with named functions and delegates or with
anonymous functions and delegates.
> In your first example is that f is implicitly called due to the
> non-strict property syntax.
OK, so this is looking like the nudge that anonymous was also talking
about, but from a different viewpoint. It seems there is implicit
behaviour going on here that is creating right royal confusion on the
part of at least one programmer, me.
The parameter I think I am passing to thread construction is sometimes,
but not mostly, not the parameter the Thread constructors are receiving.
This looks like it is going to violate the Principle of Least
Surprise :-(
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120805/c6e06448/attachment.pgp>
More information about the Digitalmars-d-learn
mailing list