Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!newshost.marcam.com!usc!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!stortek!k1!alec
From: alec@k1.stortek.com (Alec Sharp)
Subject: Re: Copyright comment in methods
Message-ID: <DBvA50.L3E@stortek.com>
Sender: news@stortek.com
Organization: Storage Technology Corporation
X-Newsreader: TIN [version 1.2 PL2]
References: <3u2kr2$6i@rigel.pixi.com> <3u3bt4$icc@ornews.intel.com> <3u528v$jsn@rigel.pixi.com> <3u9u9p$1ve@news1.best.com> <3uas8i$sgk@rigel.pixi.com> <3ubgin$94h@news1.best.com> <3ubmf6$pv6@ixnews2.ix.netcom.com>
Date: Mon, 17 Jul 1995 15:39:00 GMT
Lines: 24

Paul Osborn (posborn@ix.netcom.com) wrote:
: Does anyone know how to put the following comment (with the current
: date and time) into a method on compile?
: 'Copyright 7/16/95 07:37 am by ACME, Inc.'

In Behavior, modify the method sourceCodeTemplate

sourceCodeTemplate
	"Answer an expression to be edited and evaluated in order to
	define methods in this class."

	^'message selector and argument names
	"Copyright ', Date today printString, ' ',
	Time now printString, ' by ACME, Inc"
	
	| temporary variable names |
	statements'


Alec

--
alec_sharp@stortek.com		Storage Tek, 2270 S. 88th Street
(303)-673-2955			Louisville, CO 80028-4286
