eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'VoidObject':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: VoidObject


Inheritance:

   Object
   |
   +--VoidObject

Package:
stx:libbasic
Category:
Kernel-Objects
Version:
rev: 1.6 date: 2021/09/27 06:55:19
user: cg
file: VoidObject.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


there is only one instance of this class: Void,
representing a void value.

This is mainly present for Scheme-like read-eval-print loops,
in which methods may return void to prevent it from being printed.

It may also be useful to represent void values as returned from calls
to external functions (C-void functions) or from remote procedure calls.

Smalltalk code does not normally use it.

copyright

COPYRIGHT (c) 2016 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

class initialization
o  initialize
for JavaScript code

instance creation
o  new
VoidObject basicNew
VoidObject new


Instance protocol:

printing & storing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

queries
o  isVoid
Void isVoid



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:38:22 GMT