Serpent – Threads

Serpent – Threads

Thread Interface Serpent threads are unlike Python or Unix threads in that they are non-preemptable, meaning that threads run until a command explicitly allows another thread to run. Only one thread runs at once, even if multiple processors are available. To create a...
Serpent – Program style

Serpent – Program style

Program Style Here are some suggestions for Serpent programming style. Spaces and Indentation Indent with 4 spaces. Tell your editor to insert 4 spaces rather than TAB characters. Never use TAB characters because they are invisible and editors treat them differently....
SERPENT – Declarations and Debugging

SERPENT – Declarations and Debugging

Declarations Serpent functions and classes are created by declaration. Within classes, member variables and methods are declared. Within functions, local variables are declared. Global variables do not need to be declared. Symbols and global variables are equivalent:...
Solidity – Functions

Solidity – Functions

Function Modifiers Modifiers can be used to easily change the behaviour of functions. For example, they can automatically check a condition prior to executing the function. Modifiers are inheritable properties of contracts and may be overridden by derived contracts....
Solidity tutorial – Contracts

Solidity tutorial – Contracts

Contracts Contracts in Solidity are similar to classes in object-oriented languages. They contain persistent data in state variables and functions that can modify these variables. Calling a function on a different contract (instance) will perform an EVM function call...
WhatsApp chat