include type forcing into intellisence
| Project: | VS.Php for Visual Studio .Net |
| Component: | Editor |
| Category: | feature request |
| Priority: | normal |
| Assigned: | webmaster |
| Status: | active |
i was wondering if it could be possible to insert the type forcing into the intellisence.
for instance if you would like one variable to become an integer, you would do
(int)$variable.
for a string:
(string)$variable.
I think it would be nice to have these in there, because right now they are not inside the intellisence.
just my two cents.
Updates
| Assigned to: | » webmaster |
Your idea looks intriguing but I'm not sure I fully understand it. Could you please expand on it?
ok, you can use variable forcing to force a variable to become a specific type
ie,
to become an integer, you would use
(int)$variable_name;
to become a string,
(string)$variable_name;
this can be used in many things, like mathematical operations to ensure it deals with digits and so forth.
PHP.net refers it as type juggling, you can see more on the subject here: http://ca.php.net/manual/en/language.types.type-juggling.php
any ideas if it can be done or not?
Yep, I hear you. This will be done.

