Am 25.01.2018 um 05:27 schrieb Georg Icking-Konert:
> hello all,
> 
> are there any plans to support structures as function parameters any
> time soon, maybe even with 3.7.0 release...? This seems to be an early
> request with high priority (see
> https://sourceforge.net/p/sdcc/feature-requests/23/), but the status is
> indicated as "POSTPONED".
> 
> Just want to avoid working around this limitations somehow, only to find
> in the near future that this is no longer required...
> 
> Talking of "near future": is there a rough release date for 3.7.0
> available yet?
> 
> For your feedback thanks a lot in advance!
> 
> Georg

1) Support for struct/union as function parameters is unlikely to be
implemented soon. While it is an important feature (along with assigning
and returning struct/union) it would require many changes in SDCC, IMO
too many to be implemented before 3.7.0.

2) Unless your struct is very small or you need a copy anyway, it is
typically more efficient to pass a pointer to a struct than passing a
struct.

Philipp

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to