Subject: Comment Stuff

From: Byron Montgomerie <[email-masked]>
Date: Wed, 12 May 1993 09:30:26 -0700

So comments in moo code are expressions that have no affect since nothing is
being assigned.  

Does this mean that an expression evaluator is being run on each moocode
comment?  If so, is there inefficiency there? Is the expression evaluator
converting the comment to a string, allocating space for it in memory and
deallocating space for it afterwords when there is no assignment done?

Just Curious...

B.

---

From: Pavel Curtis <[email-masked]>
Date: Wed, 12 May 1993 11:05:10 -0700

> Date:	Wed, 12 May 1993 09:30:26 -0700
> From:	Byron Montgomerie <[email-masked]>
> 

No, the cost of `executing' a string comment is quite small; the string is put
onto the evaluation stack and then popped off again, just two reference-count
operations and *no* ticks.  The parsing and allocation of storage for the
string happens at the time the verb is defined, not each time it's run.

	Pavel