[chuck-users] Shred.quine() bug

Kassen signal.automatique at gmail.com
Wed Apr 1 07:34:17 EDT 2009

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;

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.


More information about the chuck-users mailing list