From dougo@ccs.neu.edu Fri Jan 24 13:45:26 1997 Received: from nowhere (mr-t.ccs.neu.edu [129.10.112.40]) by amber.ccs.neu.edu (8.8.4/8.7.3) with SMTP id NAA20804; Fri, 24 Jan 1997 13:45:24 -0500 (EST) Date: Fri, 24 Jan 1997 13:45:24 -0500 (EST) Message-Id: <199701241845.NAA20804@amber.ccs.neu.edu> Received: by nowhere (SMI-8.6/SMI-SVR4) id NAA00557; Fri, 24 Jan 1997 13:47:43 -0500 From: Doug Orleans To: Karl Lieberherr Cc: johan@ccs.neu.edu, kedar@ccs.neu.edu Subject: Re: predefined classes In-Reply-To: <199701241833.NAA07597@stockberg.ccs.neu.edu> References: <199701241833.NAA07597@stockberg.ccs.neu.edu> X-Face: ,HWj@r1~8onbE_1x>uxU@3+pdQ>wXW.a:'$Q/`^aA0sh}!JxD8ueZ7vTwvvl]y*Ai9]`Wqd ^o[-r'u!3,@i>wCa Status: R Karl Lieberherr writes: > Hi Doug: > Kedar and Johan would like to use predefined classes > in their cds. When will that feature be available? Well, right now I'm finishing overdue homework; first on my list of demjava fixes is multiple input files. Then I will look at fixing the terminal classes parsing problem. In the meantime, it shouldn't be that hard to add them manually: replace Foo = PrintStream. in your .cd file with this in your .beh file: Foo { (@ private PrintStream ps; public PrintStream get_ps() { return ps; } public void set_ps(PrintStream new_ps) { ps = new_ps; } @) } Since you can't traverse to terminal classes anyway, this should be identical, except for not being able to initialize with a constructor. I do this a lot in demjava.beh (it's also the only way currently to make static and public data members). --Doug