eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Annotation::Resource':

Home

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

Class: Resource (private in Annotation

This class is only visible from within Annotation.

Inheritance:

   Object
   |
   +--Annotation
      |
      +--Annotation::Resource

Package:
stx:libbasic
Category:
Kernel-Extensions
Owner:
Annotation
Author:
Claus Gittinger

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

instance creation
o  type: type value: value


Instance protocol:

accessing
o  type

o  type: typeArg value: valueArg

o  value
(comment from inherited method)
return the receiver itself.
This allows every object to be used where blocks or valueHolders
are typically used, and allows for valueHolders and blocks to be
used interchangably in some situations.

Time will show, if this is a good idea or leads to sloppy programming
style ... (the idea was borrowed from the Self language).

WARNING: don't 'optimize' away ifXXX: blocks
(i.e. do NOT replace
foo ifTrue:[var1] ifFalse:[var2]
by:
foo ifTrue:var1 ifFalse:var2
)
- the compilers will only generate inline code for the if,
iff the argument(s) are blocks - otherwise, a true send is
generated.
This 'optimization' will work semantically correct,
but execute SLOWER instead.

Using constants (foo ifTrue:1 ifFalse:2) does not introduce a performance penalty.

printing & storing
o  storeOn: aStream
(comment from inherited method)
superclass Annotation says that I am responsible to implement this method

testing
o  isResource
(comment from inherited method)
true if this is a (wellknown) resource annotation



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 02:58:34 GMT