SA-MP Forums

Go Back   SA-MP Forums > SA-MP > General

Reply
 
Thread Tools Display Modes
Old 26/11/2018, 03:58 PM   #11
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,451
Reputation: 3206
Default Re: Pawn v4

No, those already exist.
Y_Less is offline   Reply With Quote
Old 26/11/2018, 04:03 PM   #12
buridan
Little Clucker
 
Join Date: Nov 2018
Posts: 3
Reputation: 2
Default Re: Pawn v4

Oh... Excuse me for stupid questions.
The last: where I can see all list of new features?
buridan is offline   Reply With Quote
Old 26/11/2018, 04:05 PM   #13
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,451
Reputation: 3206
Default Re: Pawn v4

https://github.com/pawn-lang/compiler/wiki
Y_Less is offline   Reply With Quote
Old 01/12/2018, 05:28 PM   #14
[HLF]Southclaw
Godfather
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 5,007
Reputation: 1578
Default Re: Pawn v4

Quote:
Originally Posted by buridan View Post
Yea, I know about this compiler and use it. Okey, for example in pawn 4 appeared somethink similar to Structures from C. Are you planing to add this feature to your compiler?

PHP Code:
new student[MAX_STUDENTS][.ID, .name[16], .surname[32]];
student[i].ID 999
All this syntax is doing is saving you one byte in your source code. That's it. This is not any more a structure than what enumerated arrays are used as currently. Something similar was suggested here but, despite looking simple on the surface, it's very difficult to pull off in practice - as the issue comments explain.

To conclude, yes we can make modifications to the compiler that provide some of these features but if the only reason is to replace a [x] with a .x then I would argue that's simply not worth the effort to save a few bytes in your source code.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 01/12/2018, 05:37 PM   #15
Infin1ty
Big Clucker
 
Join Date: Feb 2018
Posts: 101
Reputation: 34
Default Re: Pawn v4

Just use the pawn-lang compiler.
__________________

le communist bork
-
I'll script whatever you need for you for a price. Contact me on Discord - Bork#2540 or Telegram - @Borker.

Yet Another Trucking System (YATS) coming soon...
Infin1ty is offline   Reply With Quote
Old 01/12/2018, 11:29 PM   #16
Kitten
High-roller
 
Kitten's Avatar
 
Join Date: Jul 2010
Location: United States
Posts: 2,361
Reputation: 323
Default Re: Pawn v4

It's fine the way it is now.
Kitten is offline   Reply With Quote
Old 02/12/2018, 09:18 AM   #17
Konverse
High-roller
 
Konverse's Avatar
 
Join Date: Apr 2015
Location: CookieZone
Posts: 1,067
Reputation: 145
Default Re: Pawn v4

I don't think it needs to be updated, based from what everyone just said here.
__________________

SA-MP Player since 2007, officially forum registered in 2015
Konverse is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Vectoral Pawn - STL Data containers for pawn Rancho Plugin Development 70 03/05/2017 08:41 PM
Forum bug with [pawn][/pawn] BBCODE Yuripe Everything and Nothing 4 06/10/2012 01:58 PM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 08:09 PM
New to pawn, trying to convert some C code to pawn CHC Scripting Help 2 22/06/2012 06:09 AM
[HELP] [pawn][/pawn] bbcode for phpbb3 Kasura Help Archive 4 20/11/2010 05:35 AM


All times are GMT. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.