1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
title:: 03_Comments
summary:: Mark Polishook tutorial
categories:: Tutorials>Mark_Polishook_tutorial
related:: Tutorials/Mark_Polishook_tutorial/00_Introductory_tutorial
section::Comments
Comments are descriptive remarks that are meant to be read by humans but ignored by computers. Programmers use comments to annotate how code works or what it does. It's also the case that some find it helpful to write programs by first notating comments and then filling in matching code.
////////////////////////////////////////////////////////////////////////////////////////////////////
To write a comment in SuperCollider, either precede text with
code::
//
::
as in
code::
// Everything up to the end of the line is a comment
::
or place text on one or more lines between
code::
/* and */
::
as in
code::
/*
This
is
a
comment
*/
::
If (when) evaluated, a comment will return nil, which is the value SuperCollider uses for uninitialized data.
////////////////////////////////////////////////////////////////////////////////////////////////////
Use Format->Syntax Colorize (or cmd-') to syntax-colorize comments.
////////////////////////////////////////////////////////////////////////////////////////////////////
go to link::Tutorials/Mark_Polishook_tutorial/04_Help::
|