Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
variadic functions #340444
09/04/10 12:49
09/04/10 12:49
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Heyho, I would really love to see variadic functions for Lite-C/A8.
Those are pretty useful when trying to do something like the sprintf function, or just to provide a cleaner API for the user. It's really annoying to cover all functions that use variadic functions inside dlls.

Please, add this feature to Lite-C.
Oh and by the way, could you please also add the __FILE__ and __LINE__ macros? They can be really handy if you need to debug something.

best regards,
JustSid


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: variadic functions [Re: WretchedSid] #340630
09/06/10 09:09
09/06/10 09:09
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, this makes sense and you can see that it's on the forecast already a long time. But it requires a major compiler modification on the machine language level, so it has to wait until the next major compiler overhaul.

Re: variadic functions [Re: jcl] #340637
09/06/10 09:36
09/06/10 09:36
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Yes, it's in the forecast since I bought A7 in summer 2007 (together with enums and unions). I guess a major compiler update will take at least another three years?

I can understand that you don't want to touch the compilers code because it's a really critical part and adding things in one place can destroy completely other places.
But couldn't you create a fork of the current compiler and create an experimental branch to test things? Users could then decide which compiler they want to use to test if the experimental compiler breaks the compatibility with the existing one. Looks like a win-win situation for me, you don't lose compatibility and new compiler features could be deployed faster.

Oh and about the __FILE__ and __LINE__ macros, do they also need a major compiler update? Because imo it's just a search and replace operation and could be done in the compiler frontend


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: variadic functions [Re: WretchedSid] #340662
09/06/10 12:22
09/06/10 12:22
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Don't worry, the next compiler revision will certainly come earlier than in 3 years. Compiler modifications are not really critical, they are just time consuming work.


Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1