Re: C# Overloads not being generated for default arguments
William S Fulton <[email protected]> Sun, 24 May 2026 15:49:19 +0100
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CANGqftBTXcKRHxVkgA7UaOBrsfmKWjsgEN1ys7bJnNSB8aiKtg@mail.gmail.com> |
--===============1240396554571357861== Content-Type: multipart/alternative; boundary="0000000000000f945406529160db" --0000000000000f945406529160db Content-Type: text/plain; charset="UTF-8" Hi Michaell What the SWIG generated bindings are entirely controlled by the SWIG interface file that the authors of the bindings wrote. You'll need to analyse the interface file or contact the authors/maintainers to discuss. William On Sun, 17 May 2026 at 23:19, Michael <[email protected]> wrote: > I'm using SWIG 4.1.1 from conda-forge to build C#, Java, and python > bindings for the GDAL <https://github.com/OSGeo/gdal/tree/master/swig> > project <https://github.com/OSGeo/gdal/tree/master/swig>. > The built Java jar file has overloads for all default arguments, as > expected, but the .NET assemblies don't. > > I didn't create these bindings, so I'm not sure if this is the result of a > choice made by the original author(s) or a bug. > Is there an option which disables the generation of overloads? > > -- Thank you, > Michael Bucari > _______________________________________________ > Swig-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/swig-user > --0000000000000f945406529160db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi Michaell</div><div><br></div><div>What the SWIG ge= nerated bindings are entirely controlled by the SWIG interface file that th= e authors of the bindings wrote. You'll need to analyse the interface f= ile or contact the authors/maintainers to discuss.</div><div><br></div><div= >William</div></div><br><div class=3D"gmail_quote gmail_quote_container"><d= iv dir=3D"ltr" class=3D"gmail_attr">On Sun, 17 May 2026 at 23:19, Michael &= lt;<a href=3D"mailto:[email protected]">[email protected]</a>> wrote:<= br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"= ><div><div>I'm using SWIG 4.1.1 from=C2=A0conda-forge to build C#, Java= , and python bindings for <a href=3D"https://github.com/OSGeo/gdal/tree/mas= ter/swig" target=3D"_blank">the GDAL</a><a href=3D"https://github.com/OSGeo= /gdal/tree/master/swig" target=3D"_blank"> project</a>.</div><div>The built= Java jar file has overloads for all default arguments, as expected, but th= e .NET assemblies don't.</div><div><br></div><div>I didn't create t= hese bindings, so I'm not sure if this is the result of a choice made b= y the original author(s) or a bug.</div><div>Is there an option which disab= les the generation of overloads?=C2=A0</div><br></div><span class=3D"gmail_= signature_prefix">-- Thank you,</span><div dir=3D"ltr" class=3D"gmail_signa= ture">Michael Bucari</div></div> _______________________________________________<br> Swig-user mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Swig-u= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/swig-user" rel=3D"n= oreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/s= wig-user</a><br> </blockquote></div> --0000000000000f945406529160db-- --===============1240396554571357861== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1240396554571357861== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user --===============1240396554571357861==--