 
 
 
 
 
 
Re: is there internal variable like $0 in perl?
- To: mathgroup at smc.vnet.net
- Subject: [mg126261] Re: is there internal variable like $0 in perl?
- From: Sseziwa Mukasa <mukasa at gmail.com>
- Date: Fri, 27 Apr 2012 06:52:21 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204201144.HAA21808@smc.vnet.net> <201204210431.AAA29236@smc.vnet.net> <201204240932.FAA24447@smc.vnet.net> <CAEtRDSdCMKYiHCjKPUQnSPSHMfOnTQW82F3horZaqx5YbQDqdA@mail.gmail.com> <201204260927.FAA05546@smc.vnet.net> <C5150F09-525C-4059-B2B8-2631CA8AC1F3@gmail.com> <4F994318.7040802@craft-tech.com>
So you really just wanted the string?  There isn't any automatic 
variable I know of that you can use for that purpose.
On Apr 26, 2012, at 8:44 AM, Ted Sariyski wrote:
> I missed to mention that  I use "me" for primitive debugging .e.g.
> Print[me, ...].
> --Ted
>
> On 4/26/2012 8:38 AM, Sseziwa Mukasa wrote:
>> Ted,
>>
>> It's not necessary in this case, any references to myFun in the 
Module are scoped to the package aaa already as long as myFun's 
declaration is after the Begin[], which I can't tell since you elided 
code.
>>
>> If you are using anonymous functions #0 refers to the function itself 
and can be used for recursive anonymous functions.
>>
>> Regards,
>> 	Ssezi
>>
>> On Apr 26, 2012, at 5:27 AM, Ted Sariyski wrote:
>>
>>> Hi,
>>>
>>> When I define a new function myFun in a package aaa` I define a variable
>>> me="aaa`myFun".
>>>
>>> BeginPackage["aaa`"]
>>> ...
>>> myFun[]:=Module[{..., me="aaa`myFun"},
>>> ...
>>>
>>> I wonder Is there an automatic variable, like $0 in perl, which
>>> internally is assigned "aaa`myFun"?
>>>
>>> Thanks in advance,
>>> --Ted
>>>
>
- References:
- Find all roots with FindRoot
- From: Sam Takoy <sam.takoy@yahoo.com>
 
- Re: Find all roots with FindRoot
- From: "Harvey P. Dale" <hpd1@nyu.edu>
 
- how to check for NumericQ arbitrary data structure
- From: Ted Sariyski <tsariysk@craft-tech.com>
 
- is there internal variable like $0 in perl?
- From: Ted Sariyski <tsariysk@craft-tech.com>
 
 
- Find all roots with FindRoot

