[chuck-users] chuck-users Digest, Vol 45, Issue 1

Les Hall inventor-66 at comcast.net
Wed Apr 1 12:12:28 EDT 2009


On Apr 1, 2009, at 12:00 PM, chuck-users-request at lists.cs.princeton.edu 
wrote:

>
> Fellow ChucKists,
>
> The .quine() member function of the Shred object (which returns the
> code of the shred in question as a string) doesn't correctly include
> comments for sporked functions.
>
> To demonstrate, this works;
> ===========================
> //this is a comment
> <<<me.quine( )>>>;
> =======================
>
> Yet this;
>
> =====================
> fun void foo()
> 	{
> 	//this is a comment
> 	second => now;
> 	me.quine();
> 	}
>
> spork ~ foo();
> hour => now;
> ===================
>
> only prints this (notice the removed comment);
>
> [chuck](VM): sporking incoming shred: 1 (unnamed1)...
> "second => now;
> me.quine();" : (string)
>
> This is of course quite inconvenient.
>
> Yours,
> Kas.
>

Kas,

I am deeply concerned about the .quine() bug.  Upon further testing, it 
appears to ignore every other comment yet print the others.  Surely we 
must address this blatant problem somehow.

Les



More information about the chuck-users mailing list