Re: Search with "Whole words only" option should omit @
Posted: Wed May 21, 2014 3:46 pm
Your statement contradicts the manual, on this page:TI-994A wrote:Operators and address references never form any part of an identifier.
http://www.purebasic.com/documentation/ ... emory.html
This is why the asterisk MUST be part of a "whole word" (if you want the IDE to be technically correct). OTOH, it makes no sense for an ampersand to be included in the list, unless you are more concerned with email addresses.Note: unlike C/C++, in PureBasic the '*' is always part of the item name. Therefore '*ptr' and 'ptr' are two different variables. 'ptr' is a variable (regular one) storing a value, '*ptr' is another variable of pointer type storing an address.
edit:
IMHO, using both '*ptr' and 'ptr' should not be allowed. PB does so many things to protect beginners, it would make sense to add this rule.