-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion with "type vs typeof" usage #281
Comments
You didn't explain what you think the bugs are, but I can guess. |
@zeromus Thank you for the explanation. I think i now understand what was wrong with my code. |
hmmmm can you quote the exact part of docs at which URL? |
http://www.squirrel-lang.org/doc/squirrel3.html#weakrefs The code examples from gray zones never show "t.thearray.weakref()". It feels as if t.thearray is supposed to be its own object with "weakref" type. |
Yes, that's what one would expect. But the docs say otherwise:
t.theArray is "the object pointed to by a weak ref", not, "the weak ref". This is SNEAKY and the docs could probably explain it better. But they do explain it. They would explain it better with a Sorry to all, I don't have suggested alternative docs at this moment. |
Hello.
I am trying to understand the difference between calling
type
andtypeof
in Squirrel 3.0.7 and i am having a hard time.Here is what i gathered so far:
type
=type
" shows "function")typeof
=typeof
" results in an error "error expression expected".I used this code:
Please, help me understand: am i doing something wrong here or is it a bug?
The text was updated successfully, but these errors were encountered: