herbert breunung <deirdre_s...@web.de> writes:

> Am 16.07.2010 22:33, schrieb Johan Vromans:
> > You pass the caller's @_ to the subroutine so it possibly
> > *does* get arguments.
> 
> i was aware of that. i mean that the sub doesnt fetch any arguments,
> and because that you get no effects.

The point is, you may not have control over this subroutine and when
its author decides to give it an argument it will break your code.
It won't break normal () calls.

> there are some cases in Wx when a & is needed like in callback
> binding of events or if you create shortcuts of extra long routine
> names.

Yes, there are several good uses of & with subroutines. Just don't
*call* subroutines with & .

-- Johan

Reply via email to