Thanks Georges It looks suggestive, but I'm struggling to follow the details of with-contract / blame-id. An example of use would be very helpful in the docs!
Have you used this construct? Dan On Sun, May 7, 2017 at 7:44 AM, Dupéron Georges <jahvascriptman...@gmail.com > wrote: > Le samedi 6 mai 2017 23:38:29 UTC+2, Daniel Prager a écrit : > > Although I understand why my macro does this > > > > unsafe-factorial: contract violation > > ... > > blaming: (function fn/impl) > > ... > > at: unsaved-editor:13.15 > > > > > > Ideally I would prefer one which blames unsafe-factorial > > > > unsafe-factorial: contract violation > > ... > > blaming: (function unsafe-factorial) > > ... > > at: unsaved-editor:13.15 > > > > > > i.e. it's leaking an auxillary introduced by the macro (fn/impl) into the > > message & Dr Racket. It seems that the line-number refers to the line > that > > defines unsafe-factorial, though, which looks right. > > Perhaps with-contract's `blame-id` can help? > > http://docs.racket-lang.org/reference/attaching-contracts- > to-values.html#%28form._%28%28lib._racket%2Fcontract% > 2Fregion..rkt%29._with-contract%29%29 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.