ref param mismatch --> segfault
bearophile
bearophileHUGS at lycos.com
Mon Jan 24 13:07:47 PST 2011
spir:
> Certainly ref qualifiers should be checked,
> shouldn't they? The situation indeed is somewhat special here.
>
> Foo getFoo(Token[] tokens, ref uint index)
> {...}
> Term[] getTerms (Term) (Term function (Token[], uint) parseFunc, Token[] tokens)
> {...}
> void main()
> {
> Foo[] foos = getTerms!(Foo)(&getFoo, s); # ==> segfault
> }
Please, create a very small but complete program that shows the problem :-) It will go to Bugzilla.
Bye,
bearophile
More information about the Digitalmars-d
mailing list