[plt-scheme] scheme_signal_error

From: Olivier ORABONA (orabonao at clio.unice.fr)
Date: Tue Apr 15 11:59:12 EDT 2003

Hi,

I've played around with scheme_signal_error and went thru a weird "behavior" 
with this code snippet :

Scheme_Object* foo(void* p, int argc, Scheme_Object** argv) {
	Scheme_Object* tmp = argv[O];
	while(!SCHEME_NULLP(tmp)) {
		if(bar(SCHEME_CAR(tmp))==BAD_INPUT)
			scheme_signal_error("Bad Input");
		tmp=SCHEME_CDR(tmp);
	}
	return scheme_true;
}

scheme_signal_error seems to "throw" a Page Fault Exception (tested under 
Windows only). But it worked elsewhere. bar function content is irrelevant. Is 
my code bad or ... ?

Thanx.

PS: if also tested with while(SCHEME_PAIRP(tmp)) without much more success.




Posted on the users mailing list.