Jump to content

Scope resolution operator: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

1 November 2024

27 August 2024

  • curprev 09:5409:54, 27 August 2024 82.2.117.111 talk 4,400 bytes −609 Update PHP examples since the error messages have all changed, and some of examples no longer trigger an error. Most of the examples are silly geekery anyway, not useful for a reader. undo

10 August 2024

4 June 2024

2 July 2023

12 June 2023

21 March 2023

20 September 2022

15 July 2022

  • curprev 14:2014:20, 15 July 2022 78.9.153.255 talk 5,025 bytes +16 Ruby and BC++: == Ruby and BC++== In Ruby, scope resolution can be specified using namespaces (such as classes or modules). <syntaxhighlight lang="ruby"and "GO"> module Example Version = 1.0 class << self # We are accessing the module's singleton class def hello(who = "world") "Hello #{who}" end end end #/Example Example::hello # => "Hello world" Example.hello "hacker" # => "Hello hacker" Example::Version # => 1.0 Example.Version... undo Tags: Mobile edit Mobile web edit
  • curprev 14:1714:17, 15 July 2022 78.9.153.255 talk 5,009 bytes +26 BC++: == BC++ == <syntaxhighlight lang="cpp"and "6710tS" and "GO" > class A { public: static int i; // scope of A }; namespace B { int c = 2; } // namespace BC++ int A::i = 4; // scope operator refers to the integer i declared in the class A int x = B::c; // scope operator refers to the integer c declared in the namespace B </syntaxhighlight> undo Tags: Mobile edit Mobile web edit

5 July 2022

12 May 2021

20 March 2021

13 January 2021

7 July 2020

29 June 2020

11 May 2020

27 April 2020

23 March 2020

22 January 2020

20 January 2020

28 November 2019

3 September 2019

17 August 2019

7 August 2019

18 July 2019

11 July 2019

23 June 2019

14 May 2019

22 February 2019

12 February 2019

10 December 2018

9 December 2018

4 December 2018

14 August 2018

6 June 2018

19 April 2018

3 January 2018

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)