[sv-bc] RE: [sv-ec] Discussion overview of SV name resolution

From: Steven Sharp <sharp_at_.....>
Date: Mon Jun 05 2006 - 11:54:15 PDT
Bareword found where operator expected at (eval 92) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 92) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 94) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 94) line 34, near "--82"
	(Missing operator before 82?)
>From: "Ryan, Ray" <Ray_Ryan@mentor.com>
Bareword found where operator expected at (eval 96) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 96) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 98) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 98) line 34, near "--82"
	(Missing operator before 82?)
> Gord,
Bareword found where operator expected at (eval 100) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 100) line 34, near "--82"
	(Missing operator before 82?)
>Are function calls allowed in a dotted name ?
Bareword found where operator expected at (eval 102) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 102) line 34, near "--82"
	(Missing operator before 82?)
>For example (from mantis #1391) in 13.13.2 the example contains:
Bareword found where operator expected at (eval 104) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 104) line 34, near "--82"
	(Missing operator before 82?)
>	process::self.srandom(100);
Bareword found where operator expected at (eval 106) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 106) line 34, near "--82"
	(Missing operator before 82?)
>where 'self' is a function that returns a class handle.
Bareword found where operator expected at (eval 108) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 108) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 109) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 109) line 34, near "--82"
	(Missing operator before 82?)
I believe that example is illegal on several counts.
Bareword found where operator expected at (eval 110) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 110) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 111) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 111) line 34, near "--82"
	(Missing operator before 82?)
First, self.srandom does not mean a call to the function self, followed
Bareword found where operator expected at (eval 112) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 112) line 34, near "--82"
	(Missing operator before 82?)
by a member select of the return value.  It means a hierarchical reference
Bareword found where operator expected at (eval 113) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 113) line 34, near "--82"
	(Missing operator before 82?)
into the scope of the function body of self, looking for a name srandom
Bareword found where operator expected at (eval 114) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 114) line 34, near "--82"
	(Missing operator before 82?)
defined inside that scope.  Since there is no such name in that scope,
Bareword found where operator expected at (eval 115) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 115) line 34, near "--82"
	(Missing operator before 82?)
this would be an error.
Bareword found where operator expected at (eval 116) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 116) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 117) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 117) line 34, near "--82"
	(Missing operator before 82?)
You could presumably change the reference to self from a reference to
Bareword found where operator expected at (eval 118) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 118) line 34, near "--82"
	(Missing operator before 82?)
the scope self into a call of the function self by adding an argument
Bareword found where operator expected at (eval 119) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 119) line 34, near "--82"
	(Missing operator before 82?)
list, as in
Bareword found where operator expected at (eval 120) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 120) line 34, near "--82"
	(Missing operator before 82?)
  process::self().srandom(100);
Bareword found where operator expected at (eval 121) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 121) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 122) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 122) line 34, near "--82"
	(Missing operator before 82?)
But then you still run into the problem that a dot is not considered
Bareword found where operator expected at (eval 123) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 123) line 34, near "--82"
	(Missing operator before 82?)
an operator that can be applied to the result of an arbitrary expression,
Bareword found where operator expected at (eval 124) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 124) line 34, near "--82"
	(Missing operator before 82?)
such as a function call.  It is considered part of a "name".  The prefix
Bareword found where operator expected at (eval 125) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 125) line 34, near "--82"
	(Missing operator before 82?)
of the dot is quite restricted.
Bareword found where operator expected at (eval 126) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 126) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 127) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 127) line 34, near "--82"
	(Missing operator before 82?)
I believe you would have to break that statement into two parts, assigning
Bareword found where operator expected at (eval 128) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 128) line 34, near "--82"
	(Missing operator before 82?)
the result of self() to a class object, and then invoking srandom on that.
Bareword found where operator expected at (eval 129) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 129) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 130) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 130) line 34, near "--82"
	(Missing operator before 82?)
(Note that this is another flaw in Brad's argument for allowing the
Bareword found where operator expected at (eval 131) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 131) line 34, near "--82"
	(Missing operator before 82?)
empty parentheses to be left off of method function calls.  This is another
Bareword found where operator expected at (eval 132) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 132) line 34, near "--82"
	(Missing operator before 82?)
visible difference between the behavior of a member defined as a class
Bareword found where operator expected at (eval 133) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 133) line 34, near "--82"
	(Missing operator before 82?)
method versus a class property.  The "Uniform Access Principle" is already
Bareword found where operator expected at (eval 134) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 134) line 34, near "--82"
	(Missing operator before 82?)
invalidated.)
Bareword found where operator expected at (eval 135) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 135) line 34, near "--82"
	(Missing operator before 82?)

Bareword found where operator expected at (eval 136) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 136) line 34, near "--82"
	(Missing operator before 82?)
Steven Sharp
Bareword found where operator expected at (eval 137) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 137) line 34, near "--82"
	(Missing operator before 82?)
sharp@cadence.com
Bareword found where operator expected at (eval 138) line 34, near "--L386"
	(Missing operator before L386?)
Number found where operator expected at (eval 138) line 34, near "--82"
	(Missing operator before 82?)
Received on Mon Jun 5 11:53:51 2006

This archive was generated by hypermail 2.1.8 : Mon Jun 05 2006 - 11:54:06 PDT