Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
VisualWorks
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== String and files == [http://www.cincomsmalltalk.com/tutorials/version7/tutorial1/ Cincom's first tutorial on VisualWorks] illustrates how VisualWorks can be used to manipulate [[Server (computing)|server]] [[Computer data logging|log files]]. It illustrates how things like [[String (computer science)|strings]] and [[Computer file|files]] can be easily subsumed into the object structure within VisualWorks. Consider the Smalltalk [[Expression (programming)|expression]]: 'ws000101.log' asFilename edit One can evaluate this expression as-is in a VisualWorks workspace using one command in the operate menu. This creates: # An [[Object (computer science)|object]] of class ByteString containing the string (as [[byte]]s) and the [[Method (computer science)|methods]] for manipulating it; # An object of class [[NTFS]]Filename (in [[Windows XP]]); and # An editor object. The latter is a simple [[notebook]]-like editor containing the contents of the file. That is, the evaluation created a [[filename]] object as a gateway to the file <code>ws000101.log</code> and opened an editor onto it. The editor itself is an object, as are all its components (down to and including the characters in its menus). The source code is available for all these objects, and VisualWorks has a plethora of inspectors, browsers, and other tools for anyone to evaluate and inspect the code in static or dynamic mode.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)