4.7 Summary

In this chapter, we covered the following:

Table 4.2 Syntax of Dylan elements.

Dylan element

Syntax example

calling a getter

*my-time-of-day*.total-seconds;

calling a setter

*my-time-of-day*.total-seconds := 180;

keyword

total-seconds:

single-line comment

// Text of comment

multiline comment

/* Text of comment that spans more than one line */

value declaration

=> (total-seconds :: <integer>)