Raised This Month: $51 Target: $400
 12% 

SourceMod and Java plugins


Post New Thread Reply   
 
Thread Tools Display Modes
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-13-2011 , 03:45   Re: SourceMod and Java plugins
Reply With Quote #11

This thread was just meant as a hypothetical discussion to explore how other languages could be implemented (but not necessarily embedded). Don't consider this a feature request, but other developers could implement this with an extension (like Viper). No doubt it would be a big task to implement.

Plugins can and have already done a lot with SourcePawn, I just missed a object oriented language and more than two data types.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
BAILOPAN
Join Date: Jan 2004
Old 07-13-2011 , 06:46   Re: SourceMod and Java plugins
Reply With Quote #12

A fair statement!

I would definitely like to understand what things are difficult and how we can solve them. Although I haven't gone into too much detail in public, there is a vague, work-in-progress project to modernize Pawn. Many of its design decisions are arbitrary, but motivated at tackling the high-level problems in Pawn, and I would like to evolve the specification based on these kinds of discussions.

It is probably possible to categorize your complaints into these categories?

* No heap, meaning you can't allocate and compose actual data structures. Pawn sort of has objects with enum-structs, but they're limited by the lack of a heap. (Pawn++ probably will not have inheritance, see here - open for discussion).
* Lack of modules.
* Lack of usable function pointers.

It's kind of hard to separate semantics from syntax - so if there's specific syntactic complaints, or something's too verbose, I'd love to hear those too.
__________________
egg

Last edited by BAILOPAN; 07-13-2011 at 07:02.
BAILOPAN is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-21-2011 , 17:47   Re: SourceMod and Java plugins
Reply With Quote #13

Quote:
Originally Posted by asherkin View Post
Things such as INativeInvoker exist for exactly this purpose, so that extensions can implement a whole new language.
And what if I want to implement C++ as a whole new language? How hard would that be? Is there any documentation except comments in source code?
__________________
FaTony is offline
avasthisamar
New Member
Join Date: Mar 2019
Old 03-13-2019 , 05:59   Re: SourceMod and Java plugins
Reply With Quote #14

Support non public functions to return strings
Handle global variables in call-by-reference parameters and variadic argument lists
Replace all float operators with inline syntax
Fix displaying of string arrays
Replace \x03 etc. chat color codes with readable string in strings
Fix displaying global string's size in cells instead of bytes
Try to fetch some type info out of format specifier strings in methods with variadic arguments
Fix displaying constant array indices as bytes instead of cells
Fix bad coalescing of stores with an operation
Fix error with switches without a default case
Display variables correctly which are only used once.

Last edited by headline; 03-14-2019 at 04:53.
avasthisamar is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 03-14-2019 , 04:50   Re: SourceMod and Java plugins
Reply With Quote #15

I skipped some of the questions due to them not making any sense. Also, pull requests welcome.


Quote:
Originally Posted by avasthisamar View Post
Support non public functions to return strings
PHP Code:
public void OnPluginStart()
{
    
PrintToServer("awd %s"test())
}

char[] test() {
    
char a[32] = " 1 ";
    return 
a;

Quote:
Originally Posted by avasthisamar View Post
Replace \x03 etc. chat color codes with readable string in strings
They're character escapes, that's not sourcepawn's job

Quote:
Originally Posted by avasthisamar View Post
Fix displaying global string's size in cells instead of bytes
sizeof refers to the amount of elements in an array, not tied to cells or bytes specifically

Quote:
Originally Posted by avasthisamar View Post
Try to fetch some type info out of format specifier strings in methods with variadic arguments
This doesn't even happen in modern-day c++, this is a run-time error.

Quote:
Originally Posted by avasthisamar View Post
Fix displaying constant array indices as bytes instead of cells
`const` variables outside of function parameters are not supported in the transitional syntax.

Quote:
Originally Posted by avasthisamar View Post
Fix error with switches without a default case
I don't think this even happens

Last edited by headline; 03-14-2019 at 04:52.
headline is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 06:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode