Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pragma_pointer #344001
10/12/10 18:12
10/12/10 18:12
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
A redirection to this thread:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=343393#Post343393

Is there any interest putting this into the official release?

Re: pragma_pointer [Re: FBL] #344142
10/14/10 10:59
10/14/10 10:59
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Using '->' in our scripts had the advantage of C compatibility, but the disadvantage that it looks more complicated to beginners.

I'm not sure - but we'll follow user's advices here. Please fill in the poll. Dependent on the result, we'll take over Firoball's modifications and write include scripts with '->' from now on.


'->' or '.'
single choice
C compatibility: I prefer '->' in include scripts.
85%, 23 Votes
Easy look: I prefer '.' in include scripts.
15%, 4 Votes
Total Votes: 27
Voting on this poll ends: 10/21/10 10:58
Re: pragma_pointer [Re: jcl] #344194
10/14/10 20:55
10/14/10 20:55
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
I read about the pragma_pointer, but didn't understand what it is about.
I, personally don't have any education in any programming language, I simply use Lite-C as did use C-Script, and I prefer '.' by far.
This is sort of people who have a programming education background versus those who do not have such a background.
I prefer 'easy look' and I prefer this smaller sign, because that's what helps me to script faster, with less typing and less mistakes.
And, it is easier to teach it to beginners.

It is a bit about personal presets in general.
We always will have personal preferences and personal codes that we include by default on our pc. I don't see a way to get rid of one's personal modifications, we just have to keep an extra folder with the parts that we copy into the new version after updating.

Re: pragma_pointer [Re: Pappenheimer] #344195
10/14/10 21:01
10/14/10 21:01
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
A few thoughts about this:
Which beginner actually looks into the acknex.h and default.c files? I for one never looked into one of these files, in fact I care about the include folder as much as I care about water on the mars: don't.

However, I took a look into the files and must say: Where is the problem with -> vs .? The files are already complicated enough for beginners, it wouldn't get any more complicated or "nicer" by making its own scripts incompatible with its own compiler.

One last thing: If a users enables pragma_pointer and suddenly everything refuses to compile, even the conitec ones, wouldn't this make everything much more complicated?


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: pragma_pointer [Re: WretchedSid] #344201
10/14/10 22:16
10/14/10 22:16
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Okay, a question:
am I still able to use '.' instead of '->', if '->' gets included in the acknex.h and default.c files?
If yes, I don't care, but I thought, if there is a poll about this matter, it must be something with serious consequences, f.i. that I can't use '.' anymore.

Last edited by Pappenheimer; 10/14/10 22:17.
Re: pragma_pointer [Re: Pappenheimer] #344206
10/15/10 00:16
10/15/10 00:16
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
Quote:
am I still able to use '.' instead of '->', if '->' gets included in the acknex.h and default.c files?

If I secretly replaced your inlcude files with the modified ones from Firoball overnight, you wouldn't even notice. At least scripting-wise. wink
So yes, you can still script the way you're used to. There won't be a difference.

Re: pragma_pointer [Re: Saturnus] #344536
10/18/10 08:21
10/18/10 08:21
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Looks as if the majority voted for the C/C++ syntax. We'll then gratefully take over Firoball's modifications and will write include scripts and macros with pointer symbols from now on. The shadow library was already written using the pointer symbol.


Moderated by  old_bill, Tobias 

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