a couple more questions...

Jason McVay jmcvay at bigfoot.com
Wed Oct 20 18:15:19 UTC 1999


--MS_Mac_OE_3023270120_694300_MIME_Part
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit


1) when entering code and an unknown uppercase variable is used, the user is
asked if he wants to declare it as a global variable or a class variable. is
there a reason why the user is not asked, when an unknown lowercase variable
is encountered, if he wants to declare it as an instance variable? is this
just an oversight or is there a technical reason why the user is only given
the option of declaring it temporary?

i've taken a stab at being able to declare instance variables from the code
pane, but i've run into a problem. it does declare the unknown lowercase
variable as an instance variable (if that was the option i chose) , but i
get an error in class Parser>>assignment: because it is expecting a
VariableNode. I've looked in class ParserNode to try to figger out how to
return a correct VariableNode, but i don't understand what all the class
variables initialized in ParserNode>>initialize mean. can someone give me a
clue about this? i've enclosed the changeset that correctly declares the
instance variable but results in the above mentioned error.

ALSO

2) as i was looking through the old mail archives, i noticed that during the
last part of summer there was a discussion on making the ScrollPane class
'better' and more intuitive (or less cumbersome). i haven't used the
ScrollPane class yet (it confuses me), so i'm interested if there's been any
changes in this area.

David Farber (he brought up the discussion on ScrollPane) wrote:
> Dan, i've built a subclass of ScrollPane called PluggableScrollMorph that
takes
>  ...much snipped...<
>  so, i'm not quite sure if i am on the right track. let me know what you
think. 

then Dan Ingalls wrote:

David - 

I agree that this is a component that we need (I hope to provide a mechanism
by which any morphic
world can be read from a web page and viewed in such a window).  Without
time to address all your
questions right now, I will take a crack at fixing your code or doing one
myself.  Also, I just noticed that
Bob Arning has done essentially this in his FMP game (TwoWayScrollPane), so
I might build on that (and
you might want to look at it yourself -- Bob's pretty handy with Squeak ;-).

     - Dan


any explanations are appreciated
jason


--MS_Mac_OE_3023270120_694300_MIME_Part
Content-Type: text/plain; name="ParserInstVar.990928-0142.cs"
 ; x-mac-type="54455854"
 ; x-mac-creator="522A6368"
Content-Disposition: attachment; filename="ParserInstVar.990928-0142.cs"
Content-Transfer-Encoding: imap_stub

0,384,2,4271,71,

--MS_Mac_OE_3023270120_694300_MIME_Part--





More information about the Squeak-dev mailing list