Message Boards Message Boards

0
|
2044 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Error: Missing["UnknownSymbol", "*;"] while evaluating ?*;

Posted 2 years ago

I try to run the following command in Mathmetica:

?*;

But meet the following error:

Missing["UnknownSymbol", "*;"]

But if it will work without the ending ;. Any hints for this problem?

Regards,
HZ

POSTED BY: Hongyi Zhao
2 Replies
Posted 2 years ago

Thank you very much. All the questions have been explained. My original wording of "hints for this problem" is just a convention I like to use when asking questions. This phrase doesn't have any preset expectations for a particular question, because the expectations themselves can be wrong or unrealistic until the question is understood.

POSTED BY: Hongyi Zhao
Posted 2 years ago

The forms ? and ?? are handled specially. In particular, they allow wildcards, and the wildcard symbol in this context is *. They also seem to assume that everything following is the input and converts it to a string as needed. So it seems you can't use them in a CompoundExpression.

I don't know what you expect in terms of "hints for this problem". That's just the way it works. You could use Information instead

Information["*"](* same output as ?* *)
Information["*;"](* same output as ?*; *)
Information["*"];(* output suppressed *)
POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract