That seems like an ok approach. Using scheme_register_process_global()
to record the type registration might be better, especially if you're
concerned about conflicts.

At Fri, 27 Feb 2015 03:21:15 -0800 (PST), Sergey Pinaev wrote:
> hi.
> scheme_make_type uses global variable type_names, that gets extended every 
> time i call scheme_make_type().
> if i use places and my place is requires some extension that calls 
> scheme_make_type() - every time the place is
> created - new scheme type created. when it reaches number 507 - i got 
> sigsegv.
> because gc->mark_table have fixed size and 507 is btc_redirect_bi_chan.
> right now i'm workaround this in extensions by doing something like:
> for (n = 0; n < scheme_num_types(); n++) {
>       if (strcmp(scheme_get_type_name(n), "<my-type>") == 0) {
> ...
> but i think it is not "right" way.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-dev/a1351839-2f34-495a-8bc1-45a5de12cc
> 67%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/20150227152357.85CC36501B0%40mail-svr1.cs.utah.edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to