CCodeGenerator (newbie) questions

Douglas McPherson djm at san.rr.com
Fri Jan 14 22:23:57 UTC 2000


I have just started to play with the CCodeGenerator and have a couple 
of (probably silly) questions:


1. Does anyone know if it is possible to specify the variable type 
for non-local variable declarations generated from instance 
variables? For example, I would like to be able to say something like:

	self instVar: #foo declareC: 'char *foo'.

so that instance variable foo results in a declaration of
char *foo;

rather than

int foo;


2. Is there a way to insert a c-comment?

Thanks in advance,
Doug





More information about the Squeak-dev mailing list