Cast any-to-any
Aus ExpeccoWiki
Cast [ Any to Any ]
- Convert a string-input to an any-output.
- Can be inserted between type-incompatible pins.
- Does no real conversion, but depends on types to be compatible on the underlying Smalltalk/Javascript level.
- Usually, this is needed if a lazy programmer has specified an output pin as "Any"-Type, and that has to be connected to an input with a more specific type (for example, "Number").
- The editor, no knowing what the output actually produces, does not allow these to be connection without this typecast in between.
Cast [ Any to Any with Check ]
- See above. In addition this block will check dynamically (during runtime) the values as they flow from the input to the output and check if these are compatible. An error is reported if they are not.
Revisions
These blocks has been in the Standard Library since 1.0.
Back to Standard Library.
Previous: Convert [ RadixString To Integer ]
Next: Cast [ String To Any ]

