• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[vJASS] (ZINC) Is it possible to override methods in sub-structs?

Status
Not open for further replies.
Level 5
Joined
Jan 18, 2012
Messages
92
Hello,

I can't seem to figure out how to override methods in sub-structs, or if it is possible to do while in "ZINC-mode". There doesn't seem to be anything in the manual(or even anything on the super keyword). In vJASS I can put stub in front of a method decleration, but in ZINC it produces an error.

EDIT: I converted the method I wished to override to a private one and now it works, and have used a wrapper method which just calls the one I need for public use. Is this the correct way to do it, or am I still missing something obvious here(in the vJASS OOP tutorial the stub keyword was used in front of a public method)?
 
Last edited:
Status
Not open for further replies.
Top