Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code in variables or resources
#1
I've always had a confusion: between the following two types of code, which one is relatively safer?
My thought is: script c1.
 
Reason:
The code of script c1 is stored in a variable, while the code of script c2 is stored in a resource.
Can it be directly viewed using a resource viewer tool?
 
Is the above understanding correct?

Macro c1
Code:
Copy      Help
out

str code=
;public class Class1
;{
;;;;;public static string StaticFunc(string s)
;;;;;{
;;;;;;;;;return s;
;;;;;}
;}
str R=CsFunc(code "hello")
out R

Macro c2
Code:
Copy      Help
out

str R=CsFunc("" "hello")
out R

#ret
public class Class1
{
;;;;public static string StaticFunc(string s)
;;;;{
;;;;;;;;return s;
;;;;}
}


Messages In This Thread
Code in variables or resources - by Davider - 08-03-2025, 01:50 PM
RE: Code in variables or resources - by Gintaras - 08-03-2025, 02:27 PM
RE: Code in variables or resources - by Gintaras - 08-03-2025, 02:33 PM
RE: Code in variables or resources - by Davider - 08-04-2025, 12:33 AM
RE: Code in variables or resources - by Davider - 08-04-2025, 03:08 AM
RE: Code in variables or resources - by Gintaras - 08-04-2025, 03:48 AM
RE: Code in variables or resources - by Davider - 08-04-2025, 04:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)