Ah, this seems to work: Base.(:(:))
I'll try whether this is general On Thu, 2014-02-06 at 22:51, [email protected] wrote: > Thanks, that seems to work mostly but not for `:`, `==` (others?) > > julia> Base.(::) > ERROR: syntax: invalid identifier name "::" > > Do I need to check for `:` or is there a general way which works for > all possible things defined in a module (except probably macros, as I > don't think they can be referred to without being evaluated). > > > On Thu, 2014-02-06 at 22:15, [email protected] wrote: >> try Base.(:*) >> >> >> On Thu, Feb 6, 2014 at 5:06 PM, Mauro <[email protected]> wrote: >> >>> Is there a way to refer to an operator, say, * with the module name >>> prepended? >>> >>> Base.* >>> >>> does not work. I think the parser thinks I want to dot-multiply `.*` >>> `Base` with something. Incidentally `Base..*` does not work either. >>> >>> One contrived use case would be >>> * = 4 >>> how do I refer to Base.* now? >>> >>> (Aside, trying things out I came across this >>> Base.`*` >>> which throws no error, why? And this works >>> readall(Base.`ls`) >>> just like >>> readall(`ls`) >>> >>> This errors: >>> Core.`*` >>> ERROR: @cmd not defined >>> >>> So it has to do with the `@cmd` macro in Base, but this errors: >>> Base.r"^\s*(?:#|$)" >>> >>> ) >>> -- Sent with my mu4e
